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

Input: 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@pengutronix.de>
Link: https://lore.kernel.org/r/20240509174158.2211071-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Uwe Kleine-König and committed by
Dmitry Torokhov
5852f2af adb2e48a

+99 -99
+1 -1
drivers/input/joystick/as5011.c
··· 337 337 } 338 338 339 339 static const struct i2c_device_id as5011_id[] = { 340 - { MODULE_DEVICE_ALIAS, 0 }, 340 + { MODULE_DEVICE_ALIAS }, 341 341 { } 342 342 }; 343 343 MODULE_DEVICE_TABLE(i2c, as5011_id);
+2 -2
drivers/input/joystick/qwiic-joystick.c
··· 126 126 #endif /* CONFIG_OF */ 127 127 128 128 static const struct i2c_device_id qwiic_id_table[] = { 129 - { KBUILD_MODNAME, 0 }, 130 - { }, 129 + { KBUILD_MODNAME }, 130 + { } 131 131 }; 132 132 MODULE_DEVICE_TABLE(i2c, qwiic_id_table); 133 133
+2 -2
drivers/input/keyboard/adp5588-keys.c
··· 832 832 static DEFINE_SIMPLE_DEV_PM_OPS(adp5588_dev_pm_ops, adp5588_suspend, adp5588_resume); 833 833 834 834 static const struct i2c_device_id adp5588_id[] = { 835 - { "adp5588-keys", 0 }, 836 - { "adp5587-keys", 0 }, 835 + { "adp5588-keys" }, 836 + { "adp5587-keys" }, 837 837 { } 838 838 }; 839 839 MODULE_DEVICE_TABLE(i2c, adp5588_id);
+1 -1
drivers/input/keyboard/cypress-sf.c
··· 209 209 cypress_sf_suspend, cypress_sf_resume); 210 210 211 211 static struct i2c_device_id cypress_sf_id_table[] = { 212 - { CYPRESS_SF_DEV_NAME, 0 }, 212 + { CYPRESS_SF_DEV_NAME }, 213 213 { } 214 214 }; 215 215 MODULE_DEVICE_TABLE(i2c, cypress_sf_id_table);
+1 -1
drivers/input/keyboard/lm8323.c
··· 792 792 static DEFINE_SIMPLE_DEV_PM_OPS(lm8323_pm_ops, lm8323_suspend, lm8323_resume); 793 793 794 794 static const struct i2c_device_id lm8323_id[] = { 795 - { "lm8323", 0 }, 795 + { "lm8323" }, 796 796 { } 797 797 }; 798 798
+1 -1
drivers/input/keyboard/lm8333.c
··· 194 194 } 195 195 196 196 static const struct i2c_device_id lm8333_id[] = { 197 - { "lm8333", 0 }, 197 + { "lm8333" }, 198 198 { } 199 199 }; 200 200 MODULE_DEVICE_TABLE(i2c, lm8333_id);
+1 -1
drivers/input/keyboard/max7359_keypad.c
··· 270 270 static DEFINE_SIMPLE_DEV_PM_OPS(max7359_pm, max7359_suspend, max7359_resume); 271 271 272 272 static const struct i2c_device_id max7359_ids[] = { 273 - { "max7359", 0 }, 273 + { "max7359" }, 274 274 { } 275 275 }; 276 276 MODULE_DEVICE_TABLE(i2c, max7359_ids);
+1 -1
drivers/input/keyboard/mpr121_touchkey.c
··· 369 369 static DEFINE_SIMPLE_DEV_PM_OPS(mpr121_touchkey_pm_ops, mpr_suspend, mpr_resume); 370 370 371 371 static const struct i2c_device_id mpr121_id[] = { 372 - { "mpr121_touchkey", 0 }, 372 + { "mpr121_touchkey" }, 373 373 { } 374 374 }; 375 375 MODULE_DEVICE_TABLE(i2c, mpr121_id);
+2 -2
drivers/input/keyboard/qt1070.c
··· 234 234 static DEFINE_SIMPLE_DEV_PM_OPS(qt1070_pm_ops, qt1070_suspend, qt1070_resume); 235 235 236 236 static const struct i2c_device_id qt1070_id[] = { 237 - { "qt1070", 0 }, 238 - { }, 237 + { "qt1070" }, 238 + { } 239 239 }; 240 240 MODULE_DEVICE_TABLE(i2c, qt1070_id); 241 241
+1 -1
drivers/input/keyboard/qt2160.c
··· 393 393 } 394 394 395 395 static const struct i2c_device_id qt2160_idtable[] = { 396 - { "qt2160", 0, }, 396 + { "qt2160" }, 397 397 { } 398 398 }; 399 399
+2 -2
drivers/input/keyboard/tm2-touchkey.c
··· 326 326 tm2_touchkey_suspend, tm2_touchkey_resume); 327 327 328 328 static const struct i2c_device_id tm2_touchkey_id_table[] = { 329 - { TM2_TOUCHKEY_DEV_NAME, 0 }, 330 - { }, 329 + { TM2_TOUCHKEY_DEV_NAME }, 330 + { } 331 331 }; 332 332 MODULE_DEVICE_TABLE(i2c, tm2_touchkey_id_table); 333 333
+5 -5
drivers/input/misc/ad714x-i2c.c
··· 72 72 } 73 73 74 74 static const struct i2c_device_id ad714x_id[] = { 75 - { "ad7142_captouch", 0 }, 76 - { "ad7143_captouch", 0 }, 77 - { "ad7147_captouch", 0 }, 78 - { "ad7147a_captouch", 0 }, 79 - { "ad7148_captouch", 0 }, 75 + { "ad7142_captouch" }, 76 + { "ad7143_captouch" }, 77 + { "ad7147_captouch" }, 78 + { "ad7147a_captouch" }, 79 + { "ad7148_captouch" }, 80 80 { } 81 81 }; 82 82 MODULE_DEVICE_TABLE(i2c, ad714x_id);
+1 -1
drivers/input/misc/adxl34x-i2c.c
··· 106 106 } 107 107 108 108 static const struct i2c_device_id adxl34x_id[] = { 109 - { "adxl34x", 0 }, 109 + { "adxl34x" }, 110 110 { } 111 111 }; 112 112
+1 -1
drivers/input/misc/apanel.c
··· 192 192 } 193 193 194 194 static const struct i2c_device_id apanel_id[] = { 195 - { "fujitsu_apanel", 0 }, 195 + { "fujitsu_apanel" }, 196 196 { } 197 197 }; 198 198 MODULE_DEVICE_TABLE(i2c, apanel_id);
+1 -1
drivers/input/misc/atmel_captouch.c
··· 257 257 MODULE_DEVICE_TABLE(of, atmel_captouch_of_id); 258 258 259 259 static const struct i2c_device_id atmel_captouch_id[] = { 260 - { "atmel_captouch", 0 }, 260 + { "atmel_captouch" }, 261 261 { } 262 262 }; 263 263 MODULE_DEVICE_TABLE(i2c, atmel_captouch_id);
+3 -3
drivers/input/misc/bma150.c
··· 536 536 static UNIVERSAL_DEV_PM_OPS(bma150_pm, bma150_suspend, bma150_resume, NULL); 537 537 538 538 static const struct i2c_device_id bma150_id[] = { 539 - { "bma150", 0 }, 540 - { "smb380", 0 }, 541 - { "bma023", 0 }, 539 + { "bma150" }, 540 + { "smb380" }, 541 + { "bma023" }, 542 542 { } 543 543 }; 544 544
+2 -2
drivers/input/misc/cma3000_d0x_i2c.c
··· 90 90 }; 91 91 92 92 static const struct i2c_device_id cma3000_i2c_id[] = { 93 - { "cma3000_d01", 0 }, 94 - { }, 93 + { "cma3000_d01" }, 94 + { } 95 95 }; 96 96 97 97 MODULE_DEVICE_TABLE(i2c, cma3000_i2c_id);
+1 -1
drivers/input/misc/drv260x.c
··· 600 600 static DEFINE_SIMPLE_DEV_PM_OPS(drv260x_pm_ops, drv260x_suspend, drv260x_resume); 601 601 602 602 static const struct i2c_device_id drv260x_id[] = { 603 - { "drv2605l", 0 }, 603 + { "drv2605l" }, 604 604 { } 605 605 }; 606 606 MODULE_DEVICE_TABLE(i2c, drv260x_id);
+1 -1
drivers/input/misc/drv2665.c
··· 283 283 static DEFINE_SIMPLE_DEV_PM_OPS(drv2665_pm_ops, drv2665_suspend, drv2665_resume); 284 284 285 285 static const struct i2c_device_id drv2665_id[] = { 286 - { "drv2665", 0 }, 286 + { "drv2665" }, 287 287 { } 288 288 }; 289 289 MODULE_DEVICE_TABLE(i2c, drv2665_id);
+1 -1
drivers/input/misc/drv2667.c
··· 460 460 static DEFINE_SIMPLE_DEV_PM_OPS(drv2667_pm_ops, drv2667_suspend, drv2667_resume); 461 461 462 462 static const struct i2c_device_id drv2667_id[] = { 463 - { "drv2667", 0 }, 463 + { "drv2667" }, 464 464 { } 465 465 }; 466 466 MODULE_DEVICE_TABLE(i2c, drv2667_id);
+2 -2
drivers/input/misc/kxtj9.c
··· 531 531 static DEFINE_SIMPLE_DEV_PM_OPS(kxtj9_pm_ops, kxtj9_suspend, kxtj9_resume); 532 532 533 533 static const struct i2c_device_id kxtj9_id[] = { 534 - { NAME, 0 }, 535 - { }, 534 + { NAME }, 535 + { } 536 536 }; 537 537 538 538 MODULE_DEVICE_TABLE(i2c, kxtj9_id);
+2 -2
drivers/input/misc/mma8450.c
··· 186 186 } 187 187 188 188 static const struct i2c_device_id mma8450_id[] = { 189 - { MMA8450_DRV_NAME, 0 }, 190 - { }, 189 + { MMA8450_DRV_NAME }, 190 + { } 191 191 }; 192 192 MODULE_DEVICE_TABLE(i2c, mma8450_id); 193 193
+1 -1
drivers/input/misc/pcf8574_keypad.c
··· 189 189 pcf8574_kp_suspend, pcf8574_kp_resume); 190 190 191 191 static const struct i2c_device_id pcf8574_kp_id[] = { 192 - { DRV_NAME, 0 }, 192 + { DRV_NAME }, 193 193 { } 194 194 }; 195 195 MODULE_DEVICE_TABLE(i2c, pcf8574_kp_id);
+2 -2
drivers/input/mouse/cyapa.c
··· 1459 1459 }; 1460 1460 1461 1461 static const struct i2c_device_id cyapa_id_table[] = { 1462 - { "cyapa", 0 }, 1463 - { }, 1462 + { "cyapa" }, 1463 + { } 1464 1464 }; 1465 1465 MODULE_DEVICE_TABLE(i2c, cyapa_id_table); 1466 1466
+2 -2
drivers/input/mouse/elan_i2c_core.c
··· 1392 1392 static DEFINE_SIMPLE_DEV_PM_OPS(elan_pm_ops, elan_suspend, elan_resume); 1393 1393 1394 1394 static const struct i2c_device_id elan_id[] = { 1395 - { DRIVER_NAME, 0 }, 1396 - { }, 1395 + { DRIVER_NAME }, 1396 + { } 1397 1397 }; 1398 1398 MODULE_DEVICE_TABLE(i2c, elan_id); 1399 1399
+2 -2
drivers/input/mouse/synaptics_i2c.c
··· 630 630 synaptics_i2c_resume); 631 631 632 632 static const struct i2c_device_id synaptics_i2c_id_table[] = { 633 - { "synaptics_i2c", 0 }, 634 - { }, 633 + { "synaptics_i2c" }, 634 + { } 635 635 }; 636 636 MODULE_DEVICE_TABLE(i2c, synaptics_i2c_id_table); 637 637
+1 -1
drivers/input/rmi4/rmi_i2c.c
··· 365 365 }; 366 366 367 367 static const struct i2c_device_id rmi_id[] = { 368 - { "rmi4_i2c", 0 }, 368 + { "rmi4_i2c" }, 369 369 { } 370 370 }; 371 371 MODULE_DEVICE_TABLE(i2c, rmi_id);
+1 -1
drivers/input/rmi4/rmi_smbus.c
··· 407 407 }; 408 408 409 409 static const struct i2c_device_id rmi_id[] = { 410 - { "rmi4_smbus", 0 }, 410 + { "rmi4_smbus" }, 411 411 { } 412 412 }; 413 413 MODULE_DEVICE_TABLE(i2c, rmi_id);
+2 -2
drivers/input/touchscreen/ad7879-i2c.c
··· 42 42 } 43 43 44 44 static const struct i2c_device_id ad7879_id[] = { 45 - { "ad7879", 0 }, 46 - { "ad7889", 0 }, 45 + { "ad7879" }, 46 + { "ad7889" }, 47 47 { } 48 48 }; 49 49 MODULE_DEVICE_TABLE(i2c, ad7879_id);
+2 -2
drivers/input/touchscreen/ar1021_i2c.c
··· 164 164 ar1021_i2c_suspend, ar1021_i2c_resume); 165 165 166 166 static const struct i2c_device_id ar1021_i2c_id[] = { 167 - { "ar1021", 0 }, 168 - { }, 167 + { "ar1021" }, 168 + { } 169 169 }; 170 170 MODULE_DEVICE_TABLE(i2c, ar1021_i2c_id); 171 171
+5 -5
drivers/input/touchscreen/atmel_mxt_ts.c
··· 3443 3443 #endif 3444 3444 3445 3445 static const struct i2c_device_id mxt_id[] = { 3446 - { "qt602240_ts", 0 }, 3447 - { "atmel_mxt_ts", 0 }, 3448 - { "atmel_mxt_tp", 0 }, 3449 - { "maxtouch", 0 }, 3450 - { "mXT224", 0 }, 3446 + { "qt602240_ts" }, 3447 + { "atmel_mxt_ts" }, 3448 + { "atmel_mxt_tp" }, 3449 + { "maxtouch" }, 3450 + { "mXT224" }, 3451 3451 { } 3452 3452 }; 3453 3453 MODULE_DEVICE_TABLE(i2c, mxt_id);
+1 -1
drivers/input/touchscreen/auo-pixcir-ts.c
··· 617 617 } 618 618 619 619 static const struct i2c_device_id auo_pixcir_idtable[] = { 620 - { "auo_pixcir_ts", 0 }, 620 + { "auo_pixcir_ts" }, 621 621 { } 622 622 }; 623 623 MODULE_DEVICE_TABLE(i2c, auo_pixcir_idtable);
+1 -1
drivers/input/touchscreen/bu21013_ts.c
··· 597 597 static DEFINE_SIMPLE_DEV_PM_OPS(bu21013_dev_pm_ops, bu21013_suspend, bu21013_resume); 598 598 599 599 static const struct i2c_device_id bu21013_id[] = { 600 - { DRIVER_TP, 0 }, 600 + { DRIVER_TP }, 601 601 { } 602 602 }; 603 603 MODULE_DEVICE_TABLE(i2c, bu21013_id);
+1 -1
drivers/input/touchscreen/bu21029_ts.c
··· 441 441 static DEFINE_SIMPLE_DEV_PM_OPS(bu21029_pm_ops, bu21029_suspend, bu21029_resume); 442 442 443 443 static const struct i2c_device_id bu21029_ids[] = { 444 - { DRIVER_NAME, 0 }, 444 + { DRIVER_NAME }, 445 445 { /* sentinel */ } 446 446 }; 447 447 MODULE_DEVICE_TABLE(i2c, bu21029_ids);
+1 -1
drivers/input/touchscreen/cy8ctma140.c
··· 322 322 cy8ctma140_suspend, cy8ctma140_resume); 323 323 324 324 static const struct i2c_device_id cy8ctma140_idtable[] = { 325 - { CY8CTMA140_NAME, 0 }, 325 + { CY8CTMA140_NAME }, 326 326 { /* sentinel */ } 327 327 }; 328 328 MODULE_DEVICE_TABLE(i2c, cy8ctma140_idtable);
+1 -1
drivers/input/touchscreen/cyttsp4_i2c.c
··· 50 50 } 51 51 52 52 static const struct i2c_device_id cyttsp4_i2c_id[] = { 53 - { CYTTSP4_I2C_NAME, 0 }, 53 + { CYTTSP4_I2C_NAME }, 54 54 { } 55 55 }; 56 56 MODULE_DEVICE_TABLE(i2c, cyttsp4_i2c_id);
+1 -1
drivers/input/touchscreen/cyttsp5.c
··· 935 935 MODULE_DEVICE_TABLE(of, cyttsp5_of_match); 936 936 937 937 static const struct i2c_device_id cyttsp5_i2c_id[] = { 938 - { CYTTSP5_NAME, 0, }, 938 + { CYTTSP5_NAME }, 939 939 { } 940 940 }; 941 941 MODULE_DEVICE_TABLE(i2c, cyttsp5_i2c_id);
+1 -1
drivers/input/touchscreen/cyttsp_i2c.c
··· 48 48 } 49 49 50 50 static const struct i2c_device_id cyttsp_i2c_id[] = { 51 - { CY_I2C_NAME, 0 }, 51 + { CY_I2C_NAME }, 52 52 { } 53 53 }; 54 54 MODULE_DEVICE_TABLE(i2c, cyttsp_i2c_id);
+1 -1
drivers/input/touchscreen/eeti_ts.c
··· 273 273 static DEFINE_SIMPLE_DEV_PM_OPS(eeti_ts_pm, eeti_ts_suspend, eeti_ts_resume); 274 274 275 275 static const struct i2c_device_id eeti_ts_id[] = { 276 - { "eeti_ts", 0 }, 276 + { "eeti_ts" }, 277 277 { } 278 278 }; 279 279 MODULE_DEVICE_TABLE(i2c, eeti_ts_id);
+1 -1
drivers/input/touchscreen/egalax_ts.c
··· 218 218 } 219 219 220 220 static const struct i2c_device_id egalax_ts_id[] = { 221 - { "egalax_ts", 0 }, 221 + { "egalax_ts" }, 222 222 { } 223 223 }; 224 224 MODULE_DEVICE_TABLE(i2c, egalax_ts_id);
+2 -2
drivers/input/touchscreen/ektf2127.c
··· 335 335 #endif 336 336 337 337 static const struct i2c_device_id ektf2127_i2c_id[] = { 338 - { "ektf2127", 0 }, 339 - { "ektf2132", 0 }, 338 + { "ektf2127" }, 339 + { "ektf2132" }, 340 340 {} 341 341 }; 342 342 MODULE_DEVICE_TABLE(i2c, ektf2127_i2c_id);
+1 -1
drivers/input/touchscreen/goodix.c
··· 1490 1490 static DEFINE_SIMPLE_DEV_PM_OPS(goodix_pm_ops, goodix_suspend, goodix_resume); 1491 1491 1492 1492 static const struct i2c_device_id goodix_ts_id[] = { 1493 - { "GDIX1001:00", 0 }, 1493 + { "GDIX1001:00" }, 1494 1494 { } 1495 1495 }; 1496 1496 MODULE_DEVICE_TABLE(i2c, goodix_ts_id);
+1 -1
drivers/input/touchscreen/goodix_berlin_i2c.c
··· 47 47 } 48 48 49 49 static const struct i2c_device_id goodix_berlin_i2c_id[] = { 50 - { "gt9916", 0 }, 50 + { "gt9916" }, 51 51 { } 52 52 }; 53 53
+1 -1
drivers/input/touchscreen/hideep.c
··· 1095 1095 } 1096 1096 1097 1097 static const struct i2c_device_id hideep_i2c_id[] = { 1098 - { HIDEEP_I2C_NAME, 0 }, 1098 + { HIDEEP_I2C_NAME }, 1099 1099 { } 1100 1100 }; 1101 1101 MODULE_DEVICE_TABLE(i2c, hideep_i2c_id);
+1 -1
drivers/input/touchscreen/himax_hx83112b.c
··· 335 335 static DEFINE_SIMPLE_DEV_PM_OPS(himax_pm_ops, himax_suspend, himax_resume); 336 336 337 337 static const struct i2c_device_id himax_ts_id[] = { 338 - { "hx83112b", 0 }, 338 + { "hx83112b" }, 339 339 { /* sentinel */ } 340 340 }; 341 341 MODULE_DEVICE_TABLE(i2c, himax_ts_id);
+2 -2
drivers/input/touchscreen/ilitek_ts_i2c.c
··· 634 634 static DEFINE_SIMPLE_DEV_PM_OPS(ilitek_pm_ops, ilitek_suspend, ilitek_resume); 635 635 636 636 static const struct i2c_device_id ilitek_ts_i2c_id[] = { 637 - { ILITEK_TS_NAME, 0 }, 638 - { }, 637 + { ILITEK_TS_NAME }, 638 + { } 639 639 }; 640 640 MODULE_DEVICE_TABLE(i2c, ilitek_ts_i2c_id); 641 641
+1 -1
drivers/input/touchscreen/max11801_ts.c
··· 213 213 } 214 214 215 215 static const struct i2c_device_id max11801_ts_id[] = { 216 - {"max11801", 0}, 216 + { "max11801" }, 217 217 { } 218 218 }; 219 219 MODULE_DEVICE_TABLE(i2c, max11801_ts_id);
+1 -1
drivers/input/touchscreen/mcs5000_ts.c
··· 266 266 mcs5000_ts_suspend, mcs5000_ts_resume); 267 267 268 268 static const struct i2c_device_id mcs5000_ts_id[] = { 269 - { "mcs5000_ts", 0 }, 269 + { "mcs5000_ts" }, 270 270 { } 271 271 }; 272 272 MODULE_DEVICE_TABLE(i2c, mcs5000_ts_id);
+2 -2
drivers/input/touchscreen/melfas_mip4.c
··· 1569 1569 #endif 1570 1570 1571 1571 static const struct i2c_device_id mip4_i2c_ids[] = { 1572 - { MIP4_DEVICE_NAME, 0 }, 1573 - { }, 1572 + { MIP4_DEVICE_NAME }, 1573 + { } 1574 1574 }; 1575 1575 MODULE_DEVICE_TABLE(i2c, mip4_i2c_ids); 1576 1576
+1 -1
drivers/input/touchscreen/migor_ts.c
··· 211 211 static DEFINE_SIMPLE_DEV_PM_OPS(migor_ts_pm, migor_ts_suspend, migor_ts_resume); 212 212 213 213 static const struct i2c_device_id migor_ts_id[] = { 214 - { "migor_ts", 0 }, 214 + { "migor_ts" }, 215 215 { } 216 216 }; 217 217 MODULE_DEVICE_TABLE(i2c, migor_ts_id);
+1 -1
drivers/input/touchscreen/mms114.c
··· 677 677 static DEFINE_SIMPLE_DEV_PM_OPS(mms114_pm_ops, mms114_suspend, mms114_resume); 678 678 679 679 static const struct i2c_device_id mms114_id[] = { 680 - { "mms114", 0 }, 680 + { "mms114" }, 681 681 { } 682 682 }; 683 683 MODULE_DEVICE_TABLE(i2c, mms114_id);
+2 -2
drivers/input/touchscreen/raydium_i2c_ts.c
··· 1227 1227 raydium_i2c_suspend, raydium_i2c_resume); 1228 1228 1229 1229 static const struct i2c_device_id raydium_i2c_id[] = { 1230 - { "raydium_i2c", 0 }, 1231 - { "rm32380", 0 }, 1230 + { "raydium_i2c" }, 1231 + { "rm32380" }, 1232 1232 { /* sentinel */ } 1233 1233 }; 1234 1234 MODULE_DEVICE_TABLE(i2c, raydium_i2c_id);
+1 -1
drivers/input/touchscreen/rohm_bu21023.c
··· 1165 1165 } 1166 1166 1167 1167 static const struct i2c_device_id rohm_bu21023_i2c_id[] = { 1168 - { BU21023_NAME, 0 }, 1168 + { BU21023_NAME }, 1169 1169 { /* sentinel */ } 1170 1170 }; 1171 1171 MODULE_DEVICE_TABLE(i2c, rohm_bu21023_i2c_id);
+2 -2
drivers/input/touchscreen/s6sy761.c
··· 520 520 #endif 521 521 522 522 static const struct i2c_device_id s6sy761_id[] = { 523 - { "s6sy761", 0 }, 524 - { }, 523 + { "s6sy761" }, 524 + { } 525 525 }; 526 526 MODULE_DEVICE_TABLE(i2c, s6sy761_id); 527 527
+6 -6
drivers/input/touchscreen/silead.c
··· 785 785 static DEFINE_SIMPLE_DEV_PM_OPS(silead_ts_pm, silead_ts_suspend, silead_ts_resume); 786 786 787 787 static const struct i2c_device_id silead_ts_id[] = { 788 - { "gsl1680", 0 }, 789 - { "gsl1688", 0 }, 790 - { "gsl3670", 0 }, 791 - { "gsl3675", 0 }, 792 - { "gsl3692", 0 }, 793 - { "mssl1680", 0 }, 788 + { "gsl1680" }, 789 + { "gsl1688" }, 790 + { "gsl3670" }, 791 + { "gsl3675" }, 792 + { "gsl3692" }, 793 + { "mssl1680" }, 794 794 { } 795 795 }; 796 796 MODULE_DEVICE_TABLE(i2c, silead_ts_id);
+2 -2
drivers/input/touchscreen/sis_i2c.c
··· 374 374 #endif 375 375 376 376 static const struct i2c_device_id sis_ts_id[] = { 377 - { SIS_I2C_NAME, 0 }, 378 - { "9200-ts", 0 }, 377 + { SIS_I2C_NAME }, 378 + { "9200-ts" }, 379 379 { /* sentinel */ } 380 380 }; 381 381 MODULE_DEVICE_TABLE(i2c, sis_ts_id);
+2 -2
drivers/input/touchscreen/stmfts.c
··· 789 789 #endif 790 790 791 791 static const struct i2c_device_id stmfts_id[] = { 792 - { "stmfts", 0 }, 793 - { }, 792 + { "stmfts" }, 793 + { } 794 794 }; 795 795 MODULE_DEVICE_TABLE(i2c, stmfts_id); 796 796
+1 -1
drivers/input/touchscreen/tsc2004.c
··· 48 48 } 49 49 50 50 static const struct i2c_device_id tsc2004_idtable[] = { 51 - { "tsc2004", 0 }, 51 + { "tsc2004" }, 52 52 { } 53 53 }; 54 54 MODULE_DEVICE_TABLE(i2c, tsc2004_idtable);
+1 -1
drivers/input/touchscreen/tsc2007_core.c
··· 400 400 } 401 401 402 402 static const struct i2c_device_id tsc2007_idtable[] = { 403 - { "tsc2007", 0 }, 403 + { "tsc2007" }, 404 404 { } 405 405 }; 406 406
+2 -2
drivers/input/touchscreen/wacom_i2c.c
··· 253 253 static DEFINE_SIMPLE_DEV_PM_OPS(wacom_i2c_pm, wacom_i2c_suspend, wacom_i2c_resume); 254 254 255 255 static const struct i2c_device_id wacom_i2c_id[] = { 256 - { "WAC_I2C_EMR", 0 }, 257 - { }, 256 + { "WAC_I2C_EMR" }, 257 + { } 258 258 }; 259 259 MODULE_DEVICE_TABLE(i2c, wacom_i2c_id); 260 260
+1 -1
drivers/input/touchscreen/wdt87xx_i2c.c
··· 1148 1148 static DEFINE_SIMPLE_DEV_PM_OPS(wdt87xx_pm_ops, wdt87xx_suspend, wdt87xx_resume); 1149 1149 1150 1150 static const struct i2c_device_id wdt87xx_dev_id[] = { 1151 - { WDT87XX_NAME, 0 }, 1151 + { WDT87XX_NAME }, 1152 1152 { } 1153 1153 }; 1154 1154 MODULE_DEVICE_TABLE(i2c, wdt87xx_dev_id);
+1 -1
drivers/input/touchscreen/zet6223.c
··· 236 236 MODULE_DEVICE_TABLE(of, zet6223_of_match); 237 237 238 238 static const struct i2c_device_id zet6223_id[] = { 239 - { "zet6223", 0}, 239 + { "zet6223" }, 240 240 { } 241 241 }; 242 242 MODULE_DEVICE_TABLE(i2c, zet6223_id);
+1 -1
drivers/input/touchscreen/zforce_ts.c
··· 923 923 } 924 924 925 925 static struct i2c_device_id zforce_idtable[] = { 926 - { "zforce-ts", 0 }, 926 + { "zforce-ts" }, 927 927 { } 928 928 }; 929 929 MODULE_DEVICE_TABLE(i2c, zforce_idtable);