Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc: 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.

While add it, also remove commas after the sentinel entries.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240624125101.1242750-2-u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Uwe Kleine-König and committed by
Greg Kroah-Hartman
b45c696c 822d7335

+10 -10
+1 -1
drivers/misc/apds9802als.c
··· 285 285 #endif /* CONFIG_PM */ 286 286 287 287 static const struct i2c_device_id apds9802als_id[] = { 288 - { DRIVER_NAME, 0 }, 288 + { DRIVER_NAME }, 289 289 { } 290 290 }; 291 291
+1 -1
drivers/misc/apds990x.c
··· 1253 1253 #endif 1254 1254 1255 1255 static const struct i2c_device_id apds990x_id[] = { 1256 - {"apds990x", 0 }, 1256 + { "apds990x" }, 1257 1257 {} 1258 1258 }; 1259 1259
+2 -2
drivers/misc/bh1770glc.c
··· 1361 1361 #endif 1362 1362 1363 1363 static const struct i2c_device_id bh1770_id[] = { 1364 - {"bh1770glc", 0 }, 1365 - {"sfh7770", 0 }, 1364 + { "bh1770glc" }, 1365 + { "sfh7770" }, 1366 1366 {} 1367 1367 }; 1368 1368
+1 -1
drivers/misc/ds1682.c
··· 271 271 } 272 272 273 273 static const struct i2c_device_id ds1682_id[] = { 274 - { "ds1682", 0 }, 274 + { "ds1682" }, 275 275 { } 276 276 }; 277 277 MODULE_DEVICE_TABLE(i2c, ds1682_id);
+1 -1
drivers/misc/hmc6352.c
··· 121 121 } 122 122 123 123 static const struct i2c_device_id hmc6352_id[] = { 124 - { "hmc6352", 0 }, 124 + { "hmc6352" }, 125 125 { } 126 126 }; 127 127
+1 -1
drivers/misc/ics932s401.c
··· 95 95 static void ics932s401_remove(struct i2c_client *client); 96 96 97 97 static const struct i2c_device_id ics932s401_id[] = { 98 - { "ics932s401", 0 }, 98 + { "ics932s401" }, 99 99 { } 100 100 }; 101 101 MODULE_DEVICE_TABLE(i2c, ics932s401_id);
+1 -1
drivers/misc/isl29003.c
··· 449 449 #endif /* CONFIG_PM_SLEEP */ 450 450 451 451 static const struct i2c_device_id isl29003_id[] = { 452 - { "isl29003", 0 }, 452 + { "isl29003" }, 453 453 {} 454 454 }; 455 455 MODULE_DEVICE_TABLE(i2c, isl29003_id);
+1 -1
drivers/misc/isl29020.c
··· 177 177 } 178 178 179 179 static const struct i2c_device_id isl29020_id[] = { 180 - { "isl29020", 0 }, 180 + { "isl29020" }, 181 181 { } 182 182 }; 183 183
+1 -1
drivers/misc/tsl2550.c
··· 420 420 #endif /* CONFIG_PM_SLEEP */ 421 421 422 422 static const struct i2c_device_id tsl2550_id[] = { 423 - { "tsl2550", 0 }, 423 + { "tsl2550" }, 424 424 { } 425 425 }; 426 426 MODULE_DEVICE_TABLE(i2c, tsl2550_id);