summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/windfarm_lm87_sensor.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-06-24 15:24:33 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2024-06-28 14:08:05 +0200
commit38767dde5f7b691026a8481904a0ae1c9d74e647 (patch)
treeaa72622840208352178b31a7af2322fa5efa09d6 /drivers/macintosh/windfarm_lm87_sensor.c
parentpowerpc/iommu: Reimplement the iommu_table_group_ops for pSeries (diff)
downloadlinux-38767dde5f7b691026a8481904a0ae1c9d74e647.tar.xz
linux-38767dde5f7b691026a8481904a0ae1c9d74e647.zip
macintosh: 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@baylibre.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240624132433.1244750-2-u.kleine-koenig@baylibre.com
Diffstat (limited to 'drivers/macintosh/windfarm_lm87_sensor.c')
-rw-r--r--drivers/macintosh/windfarm_lm87_sensor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/windfarm_lm87_sensor.c b/drivers/macintosh/windfarm_lm87_sensor.c
index 975361c23a93..16635e2b180b 100644
--- a/drivers/macintosh/windfarm_lm87_sensor.c
+++ b/drivers/macintosh/windfarm_lm87_sensor.c
@@ -156,7 +156,7 @@ static void wf_lm87_remove(struct i2c_client *client)
}
static const struct i2c_device_id wf_lm87_id[] = {
- { "MAC,lm87cimt", 0 },
+ { "MAC,lm87cimt" },
{ }
};
MODULE_DEVICE_TABLE(i2c, wf_lm87_id);