]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
macintosh: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 24 Jun 2024 13:24:33 +0000 (15:24 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Jun 2024 12:08:05 +0000 (22:08 +1000)
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
drivers/macintosh/ams/ams-i2c.c
drivers/macintosh/windfarm_ad7417_sensor.c
drivers/macintosh/windfarm_fcu_controls.c
drivers/macintosh/windfarm_lm87_sensor.c
drivers/macintosh/windfarm_max6690_sensor.c
drivers/macintosh/windfarm_smu_sat.c

index f9bfe84b1c73566cd0d50564e3ce73aaa187d309..d5cdbba6e7c752308f4ef63e10b6a25004ee4012 100644 (file)
@@ -60,7 +60,7 @@ static int ams_i2c_probe(struct i2c_client *client);
 static void ams_i2c_remove(struct i2c_client *client);
 
 static const struct i2c_device_id ams_id[] = {
-       { "MAC,accelerometer_1", 0 },
+       { "MAC,accelerometer_1" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ams_id);
index 49ce37fde9300a15c064c5074c5687ca5c741474..3ff4577ba847fa9467ea01e8946ffc0153592b16 100644 (file)
@@ -304,7 +304,7 @@ static void wf_ad7417_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id wf_ad7417_id[] = {
-       { "MAC,ad7417", 0 },
+       { "MAC,ad7417" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, wf_ad7417_id);
index 603ef6c600ba8848e5358f5c601be03bda0c1732..82365f19adb4603dc6e0aab8bd0c9145356a56dd 100644 (file)
@@ -573,7 +573,7 @@ static void wf_fcu_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id wf_fcu_id[] = {
-       { "MAC,fcu", 0 },
+       { "MAC,fcu" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, wf_fcu_id);
index 975361c23a93a8fb4cf257bbe4d09d9f1c2f1c64..16635e2b180b8c955deaadb5ae612fece8a87a07 100644 (file)
@@ -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);
index 02856d1f031376f0e7fd1f90c8095fee5030f58b..d734b31b8236f3d59fe18a76bb57e103dc3f93ae 100644 (file)
@@ -112,7 +112,7 @@ static void wf_max6690_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id wf_max6690_id[] = {
-       { "MAC,max6690", 0 },
+       { "MAC,max6690" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, wf_max6690_id);
index 50baa062c9dfb8021a3cfe9bc0200193cb791201..ff8805ecf2e56e32715185ea9f08b277c8f12c50 100644 (file)
@@ -333,7 +333,7 @@ static void wf_sat_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id wf_sat_id[] = {
-       { "MAC,smu-sat", 0 },
+       { "MAC,smu-sat" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, wf_sat_id);