diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-04-30 10:56:53 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-05-01 07:47:49 -0700 |
commit | d8a66f3621c2886ad328d9df53349fc10251f583 (patch) | |
tree | 86112744d7ce5631ec828790f29b08af5c1fe320 /drivers/hwmon/emc2305.c | |
parent | 801fec8df5649cdba6587522b9b3e872d31cd8c8 (diff) |
hwmon: Drop explicit initialization of struct i2c_device_id::driver_data to 0
These drivers 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@pengutronix.de>
Link: https://lore.kernel.org/r/20240430085654.1028864-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/emc2305.c')
-rw-r--r-- | drivers/hwmon/emc2305.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hwmon/emc2305.c b/drivers/hwmon/emc2305.c index 6ef733c0be16..4d39fbd83769 100644 --- a/drivers/hwmon/emc2305.c +++ b/drivers/hwmon/emc2305.c @@ -47,10 +47,10 @@ enum emc230x_product_id { }; static const struct i2c_device_id emc2305_ids[] = { - { "emc2305", 0 }, - { "emc2303", 0 }, - { "emc2302", 0 }, - { "emc2301", 0 }, + { "emc2305" }, + { "emc2303" }, + { "emc2302" }, + { "emc2301" }, { } }; MODULE_DEVICE_TABLE(i2c, emc2305_ids); |