usb: typec: Drop explicit initialization of struct i2c_device_id::driver_data to 0

These driver don't use the driver_data member of struct i2c_device_id,
so don't explicitly initialize this member.

This prepares putting driver_data in an anonymous union which requires
either no initialization or named designators. But it's also a nice
cleanup on its own.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240710073050.192806-2-u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Uwe Kleine-König
2024-07-10 09:30:50 +02:00
committed by Greg Kroah-Hartman
parent d504bfa6cf
commit 41ea26a06a
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1566,7 +1566,7 @@ static void anx7411_i2c_remove(struct i2c_client *client)
}
static const struct i2c_device_id anx7411_id[] = {
{"anx7411", 0},
{ "anx7411" },
{}
};
+2 -2
View File
@@ -1820,8 +1820,8 @@ static const struct of_device_id fusb302_dt_match[] __maybe_unused = {
MODULE_DEVICE_TABLE(of, fusb302_dt_match);
static const struct i2c_device_id fusb302_i2c_device_id[] = {
{"typec_fusb302", 0},
{},
{ "typec_fusb302" },
{}
};
MODULE_DEVICE_TABLE(i2c, fusb302_i2c_device_id);
+1 -1
View File
@@ -947,7 +947,7 @@ static void tcpci_remove(struct i2c_client *client)
}
static const struct i2c_device_id tcpci_id[] = {
{ "tcpci", 0 },
{ "tcpci" },
{ }
};
MODULE_DEVICE_TABLE(i2c, tcpci_id);
+1 -1
View File
@@ -538,7 +538,7 @@ static void max_tcpci_remove(struct i2c_client *client)
}
static const struct i2c_device_id max_tcpci_id[] = {
{ "maxtcpc", 0 },
{ "maxtcpc" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max_tcpci_id);
+1 -1
View File
@@ -1501,7 +1501,7 @@ static const struct of_device_id ucsi_ccg_of_match_table[] = {
MODULE_DEVICE_TABLE(of, ucsi_ccg_of_match_table);
static const struct i2c_device_id ucsi_ccg_device_id[] = {
{"ccgx-ucsi", 0},
{ "ccgx-ucsi" },
{}
};
MODULE_DEVICE_TABLE(i2c, ucsi_ccg_device_id);
+2 -2
View File
@@ -739,8 +739,8 @@ static const struct of_device_id __maybe_unused ucsi_stm32g0_typec_of_match[] =
MODULE_DEVICE_TABLE(of, ucsi_stm32g0_typec_of_match);
static const struct i2c_device_id ucsi_stm32g0_typec_i2c_devid[] = {
{"stm32g0-typec", 0},
{},
{ "stm32g0-typec" },
{}
};
MODULE_DEVICE_TABLE(i2c, ucsi_stm32g0_typec_i2c_devid);