Skip to content

Commit 41ea26a

Browse files
ukleinekgregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d504bfa commit 41ea26a

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

drivers/usb/typec/anx7411.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ static void anx7411_i2c_remove(struct i2c_client *client)
15661566
}
15671567

15681568
static const struct i2c_device_id anx7411_id[] = {
1569-
{"anx7411", 0},
1569+
{ "anx7411" },
15701570
{}
15711571
};
15721572

drivers/usb/typec/tcpm/fusb302.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,8 +1820,8 @@ static const struct of_device_id fusb302_dt_match[] __maybe_unused = {
18201820
MODULE_DEVICE_TABLE(of, fusb302_dt_match);
18211821

18221822
static const struct i2c_device_id fusb302_i2c_device_id[] = {
1823-
{"typec_fusb302", 0},
1824-
{},
1823+
{ "typec_fusb302" },
1824+
{}
18251825
};
18261826
MODULE_DEVICE_TABLE(i2c, fusb302_i2c_device_id);
18271827

drivers/usb/typec/tcpm/tcpci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ static void tcpci_remove(struct i2c_client *client)
947947
}
948948

949949
static const struct i2c_device_id tcpci_id[] = {
950-
{ "tcpci", 0 },
950+
{ "tcpci" },
951951
{ }
952952
};
953953
MODULE_DEVICE_TABLE(i2c, tcpci_id);

drivers/usb/typec/tcpm/tcpci_maxim_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ static void max_tcpci_remove(struct i2c_client *client)
538538
}
539539

540540
static const struct i2c_device_id max_tcpci_id[] = {
541-
{ "maxtcpc", 0 },
541+
{ "maxtcpc" },
542542
{ }
543543
};
544544
MODULE_DEVICE_TABLE(i2c, max_tcpci_id);

drivers/usb/typec/ucsi/ucsi_ccg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ static const struct of_device_id ucsi_ccg_of_match_table[] = {
15011501
MODULE_DEVICE_TABLE(of, ucsi_ccg_of_match_table);
15021502

15031503
static const struct i2c_device_id ucsi_ccg_device_id[] = {
1504-
{"ccgx-ucsi", 0},
1504+
{ "ccgx-ucsi" },
15051505
{}
15061506
};
15071507
MODULE_DEVICE_TABLE(i2c, ucsi_ccg_device_id);

drivers/usb/typec/ucsi/ucsi_stm32g0.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,8 @@ static const struct of_device_id __maybe_unused ucsi_stm32g0_typec_of_match[] =
739739
MODULE_DEVICE_TABLE(of, ucsi_stm32g0_typec_of_match);
740740

741741
static const struct i2c_device_id ucsi_stm32g0_typec_i2c_devid[] = {
742-
{"stm32g0-typec", 0},
743-
{},
742+
{ "stm32g0-typec" },
743+
{}
744744
};
745745
MODULE_DEVICE_TABLE(i2c, ucsi_stm32g0_typec_i2c_devid);
746746

0 commit comments

Comments
 (0)