summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm87.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-05-08 09:20:26 +0200
committerGuenter Roeck <linux@roeck-us.net>2024-05-09 12:56:06 -0700
commit2fa365974c3eb97f29ff2dbeff3e9011170e492c (patch)
tree9cf67cbc974f9944d8f0dae4159ebfb3103154e4 /drivers/hwmon/lm87.c
parent6a8157812f5b486d1fdabeefa070d75ae49220ee (diff)
downloadlinux-stable-2fa365974c3eb97f29ff2dbeff3e9011170e492c.tar.gz
linux-stable-2fa365974c3eb97f29ff2dbeff3e9011170e492c.tar.bz2
linux-stable-2fa365974c3eb97f29ff2dbeff3e9011170e492c.zip
hwmon: Drop explicit initialization of struct i2c_device_id::driver_data to 0 (part 2)
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. This is a follow up to commit d8a66f3621c2 ("hwmon: Drop explicit initialization of struct i2c_device_id::driver_data to 0") which I created before identifying a few corner cases in my conversion script. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20240508072027.2119857-2-u.kleine-koenig@pengutronix.de Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/lm87.c')
-rw-r--r--drivers/hwmon/lm87.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c
index 03964127a12a..d2d970e73c61 100644
--- a/drivers/hwmon/lm87.c
+++ b/drivers/hwmon/lm87.c
@@ -976,7 +976,7 @@ static int lm87_probe(struct i2c_client *client)
static const struct i2c_device_id lm87_id[] = {
{ "lm87" },
- { "adm1024", 0 },
+ { "adm1024" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lm87_id);