summaryrefslogtreecommitdiff
path: root/drivers/hwmon/hih6130.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-04-30 11:56:53 +0300
committerGuenter Roeck <linux@roeck-us.net>2024-05-01 17:47:49 +0300
commitd8a66f3621c2886ad328d9df53349fc10251f583 (patch)
tree86112744d7ce5631ec828790f29b08af5c1fe320 /drivers/hwmon/hih6130.c
parent801fec8df5649cdba6587522b9b3e872d31cd8c8 (diff)
downloadlinux-d8a66f3621c2886ad328d9df53349fc10251f583.tar.xz
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/hih6130.c')
-rw-r--r--drivers/hwmon/hih6130.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c
index a9726b5370fb..85af8299150a 100644
--- a/drivers/hwmon/hih6130.c
+++ b/drivers/hwmon/hih6130.c
@@ -233,7 +233,7 @@ static int hih6130_probe(struct i2c_client *client)
/* Device ID table */
static const struct i2c_device_id hih6130_id[] = {
- { "hih6130", 0 },
+ { "hih6130" },
{ }
};
MODULE_DEVICE_TABLE(i2c, hih6130_id);