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

regulator: Switch i2c drivers back to use .probe()

After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f498b5 ("i2c: Switch .probe() to not take an id parameter") convert
back to (the new) .probe() to be able to eventually drop .probe_new() from
struct i2c_driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de
Link: https://lore.kernel.org/r/20230505220218.1239542-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org

authored by

Uwe Kleine-König and committed by
Mark Brown
964e1865 ac9a7868

+56 -56
+1 -1
drivers/regulator/88pg86x.c
··· 104 104 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 105 105 .of_match_table = of_match_ptr(pg86x_dt_ids), 106 106 }, 107 - .probe_new = pg86x_i2c_probe, 107 + .probe = pg86x_i2c_probe, 108 108 .id_table = pg86x_i2c_id, 109 109 }; 110 110
+1 -1
drivers/regulator/act8865-regulator.c
··· 791 791 .name = "act8865", 792 792 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 793 793 }, 794 - .probe_new = act8865_pmic_probe, 794 + .probe = act8865_pmic_probe, 795 795 .id_table = act8865_ids, 796 796 }; 797 797
+1 -1
drivers/regulator/ad5398.c
··· 254 254 } 255 255 256 256 static struct i2c_driver ad5398_driver = { 257 - .probe_new = ad5398_probe, 257 + .probe = ad5398_probe, 258 258 .driver = { 259 259 .name = "ad5398", 260 260 .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+1 -1
drivers/regulator/da9121-regulator.c
··· 1197 1197 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 1198 1198 .of_match_table = of_match_ptr(da9121_dt_ids), 1199 1199 }, 1200 - .probe_new = da9121_i2c_probe, 1200 + .probe = da9121_i2c_probe, 1201 1201 .remove = da9121_i2c_remove, 1202 1202 .id_table = da9121_i2c_id, 1203 1203 };
+1 -1
drivers/regulator/da9210-regulator.c
··· 224 224 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 225 225 .of_match_table = of_match_ptr(da9210_dt_ids), 226 226 }, 227 - .probe_new = da9210_i2c_probe, 227 + .probe = da9210_i2c_probe, 228 228 .id_table = da9210_i2c_id, 229 229 }; 230 230
+1 -1
drivers/regulator/da9211-regulator.c
··· 555 555 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 556 556 .of_match_table = of_match_ptr(da9211_dt_ids), 557 557 }, 558 - .probe_new = da9211_i2c_probe, 558 + .probe = da9211_i2c_probe, 559 559 .id_table = da9211_i2c_id, 560 560 }; 561 561
+1 -1
drivers/regulator/fan53555.c
··· 775 775 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 776 776 .of_match_table = of_match_ptr(fan53555_dt_ids), 777 777 }, 778 - .probe_new = fan53555_regulator_probe, 778 + .probe = fan53555_regulator_probe, 779 779 .id_table = fan53555_id, 780 780 }; 781 781
+1 -1
drivers/regulator/fan53880.c
··· 175 175 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 176 176 .of_match_table = fan53880_dt_ids, 177 177 }, 178 - .probe_new = fan53880_i2c_probe, 178 + .probe = fan53880_i2c_probe, 179 179 .id_table = fan53880_i2c_id, 180 180 }; 181 181 module_i2c_driver(fan53880_regulator_driver);
+1 -1
drivers/regulator/isl6271a-regulator.c
··· 149 149 .name = "isl6271a", 150 150 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 151 151 }, 152 - .probe_new = isl6271a_probe, 152 + .probe = isl6271a_probe, 153 153 .id_table = isl6271a_id, 154 154 }; 155 155
+1 -1
drivers/regulator/isl9305.c
··· 198 198 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 199 199 .of_match_table = of_match_ptr(isl9305_dt_ids), 200 200 }, 201 - .probe_new = isl9305_i2c_probe, 201 + .probe = isl9305_i2c_probe, 202 202 .id_table = isl9305_i2c_id, 203 203 }; 204 204
+1 -1
drivers/regulator/lp3971.c
··· 449 449 .name = "LP3971", 450 450 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 451 451 }, 452 - .probe_new = lp3971_i2c_probe, 452 + .probe = lp3971_i2c_probe, 453 453 .id_table = lp3971_i2c_id, 454 454 }; 455 455
+1 -1
drivers/regulator/lp3972.c
··· 547 547 .name = "lp3972", 548 548 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 549 549 }, 550 - .probe_new = lp3972_i2c_probe, 550 + .probe = lp3972_i2c_probe, 551 551 .id_table = lp3972_i2c_id, 552 552 }; 553 553
+1 -1
drivers/regulator/lp872x.c
··· 947 947 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 948 948 .of_match_table = of_match_ptr(lp872x_dt_ids), 949 949 }, 950 - .probe_new = lp872x_probe, 950 + .probe = lp872x_probe, 951 951 .id_table = lp872x_ids, 952 952 }; 953 953
+1 -1
drivers/regulator/lp8755.c
··· 442 442 .name = LP8755_NAME, 443 443 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 444 444 }, 445 - .probe_new = lp8755_probe, 445 + .probe = lp8755_probe, 446 446 .remove = lp8755_remove, 447 447 .id_table = lp8755_id, 448 448 };
+1 -1
drivers/regulator/ltc3589.c
··· 477 477 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 478 478 .of_match_table = of_match_ptr(ltc3589_of_match), 479 479 }, 480 - .probe_new = ltc3589_probe, 480 + .probe = ltc3589_probe, 481 481 .id_table = ltc3589_i2c_id, 482 482 }; 483 483 module_i2c_driver(ltc3589_driver);
+1 -1
drivers/regulator/ltc3676.c
··· 374 374 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 375 375 .of_match_table = of_match_ptr(ltc3676_of_match), 376 376 }, 377 - .probe_new = ltc3676_regulator_probe, 377 + .probe = ltc3676_regulator_probe, 378 378 .id_table = ltc3676_i2c_id, 379 379 }; 380 380 module_i2c_driver(ltc3676_driver);
+1 -1
drivers/regulator/max1586.c
··· 289 289 MODULE_DEVICE_TABLE(i2c, max1586_id); 290 290 291 291 static struct i2c_driver max1586_pmic_driver = { 292 - .probe_new = max1586_pmic_probe, 292 + .probe = max1586_pmic_probe, 293 293 .driver = { 294 294 .name = "max1586", 295 295 .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+1 -1
drivers/regulator/max20086-regulator.c
··· 323 323 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 324 324 .of_match_table = of_match_ptr(max20086_dt_ids), 325 325 }, 326 - .probe_new = max20086_i2c_probe, 326 + .probe = max20086_i2c_probe, 327 327 .id_table = max20086_i2c_id, 328 328 }; 329 329
+1 -1
drivers/regulator/max20411-regulator.c
··· 156 156 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 157 157 .of_match_table = of_max20411_match_tbl, 158 158 }, 159 - .probe_new = max20411_probe, 159 + .probe = max20411_probe, 160 160 .id_table = max20411_id, 161 161 }; 162 162 module_i2c_driver(max20411_i2c_driver);
+1 -1
drivers/regulator/max77826-regulator.c
··· 292 292 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 293 293 .of_match_table = of_match_ptr(max77826_of_match), 294 294 }, 295 - .probe_new = max77826_i2c_probe, 295 + .probe = max77826_i2c_probe, 296 296 .id_table = max77826_id, 297 297 }; 298 298 module_i2c_driver(max77826_regulator_driver);
+1 -1
drivers/regulator/max8649.c
··· 246 246 MODULE_DEVICE_TABLE(i2c, max8649_id); 247 247 248 248 static struct i2c_driver max8649_driver = { 249 - .probe_new = max8649_regulator_probe, 249 + .probe = max8649_regulator_probe, 250 250 .driver = { 251 251 .name = "max8649", 252 252 .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+1 -1
drivers/regulator/max8660.c
··· 503 503 MODULE_DEVICE_TABLE(i2c, max8660_id); 504 504 505 505 static struct i2c_driver max8660_driver = { 506 - .probe_new = max8660_probe, 506 + .probe = max8660_probe, 507 507 .driver = { 508 508 .name = "max8660", 509 509 .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+1 -1
drivers/regulator/max8893.c
··· 168 168 MODULE_DEVICE_TABLE(i2c, max8893_ids); 169 169 170 170 static struct i2c_driver max8893_driver = { 171 - .probe_new = max8893_probe_new, 171 + .probe = max8893_probe_new, 172 172 .driver = { 173 173 .name = "max8893", 174 174 .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+1 -1
drivers/regulator/max8952.c
··· 313 313 MODULE_DEVICE_TABLE(i2c, max8952_ids); 314 314 315 315 static struct i2c_driver max8952_pmic_driver = { 316 - .probe_new = max8952_pmic_probe, 316 + .probe = max8952_pmic_probe, 317 317 .driver = { 318 318 .name = "max8952", 319 319 .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+1 -1
drivers/regulator/max8973-regulator.c
··· 807 807 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 808 808 .of_match_table = of_max8973_match_tbl, 809 809 }, 810 - .probe_new = max8973_probe, 810 + .probe = max8973_probe, 811 811 .id_table = max8973_id, 812 812 }; 813 813
+1 -1
drivers/regulator/mcp16502.c
··· 584 584 MODULE_DEVICE_TABLE(i2c, mcp16502_i2c_id); 585 585 586 586 static struct i2c_driver mcp16502_drv = { 587 - .probe_new = mcp16502_probe, 587 + .probe = mcp16502_probe, 588 588 .driver = { 589 589 .name = "mcp16502-regulator", 590 590 .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+1 -1
drivers/regulator/mp5416.c
··· 240 240 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 241 241 .of_match_table = of_match_ptr(mp5416_of_match), 242 242 }, 243 - .probe_new = mp5416_i2c_probe, 243 + .probe = mp5416_i2c_probe, 244 244 .id_table = mp5416_id, 245 245 }; 246 246 module_i2c_driver(mp5416_regulator_driver);
+1 -1
drivers/regulator/mp8859.c
··· 147 147 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 148 148 .of_match_table = of_match_ptr(mp8859_dt_id), 149 149 }, 150 - .probe_new = mp8859_i2c_probe, 150 + .probe = mp8859_i2c_probe, 151 151 .id_table = mp8859_i2c_id, 152 152 }; 153 153
+1 -1
drivers/regulator/mp886x.c
··· 365 365 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 366 366 .of_match_table = mp886x_dt_ids, 367 367 }, 368 - .probe_new = mp886x_i2c_probe, 368 + .probe = mp886x_i2c_probe, 369 369 .id_table = mp886x_id, 370 370 }; 371 371 module_i2c_driver(mp886x_regulator_driver);
+1 -1
drivers/regulator/mpq7920.c
··· 321 321 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 322 322 .of_match_table = of_match_ptr(mpq7920_of_match), 323 323 }, 324 - .probe_new = mpq7920_i2c_probe, 324 + .probe = mpq7920_i2c_probe, 325 325 .id_table = mpq7920_id, 326 326 }; 327 327 module_i2c_driver(mpq7920_regulator_driver);
+1 -1
drivers/regulator/mt6311-regulator.c
··· 154 154 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 155 155 .of_match_table = of_match_ptr(mt6311_dt_ids), 156 156 }, 157 - .probe_new = mt6311_i2c_probe, 157 + .probe = mt6311_i2c_probe, 158 158 .id_table = mt6311_i2c_id, 159 159 }; 160 160
+1 -1
drivers/regulator/pca9450-regulator.c
··· 875 875 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 876 876 .of_match_table = pca9450_of_match, 877 877 }, 878 - .probe_new = pca9450_i2c_probe, 878 + .probe = pca9450_i2c_probe, 879 879 }; 880 880 881 881 module_i2c_driver(pca9450_i2c_driver);
+1 -1
drivers/regulator/pf8x00-regulator.c
··· 610 610 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 611 611 .of_match_table = pf8x00_dt_ids, 612 612 }, 613 - .probe_new = pf8x00_i2c_probe, 613 + .probe = pf8x00_i2c_probe, 614 614 }; 615 615 module_i2c_driver(pf8x00_regulator_driver); 616 616
+1 -1
drivers/regulator/pfuze100-regulator.c
··· 848 848 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 849 849 .of_match_table = pfuze_dt_ids, 850 850 }, 851 - .probe_new = pfuze100_regulator_probe, 851 + .probe = pfuze100_regulator_probe, 852 852 }; 853 853 module_i2c_driver(pfuze_driver); 854 854
+1 -1
drivers/regulator/pv88060-regulator.c
··· 379 379 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 380 380 .of_match_table = of_match_ptr(pv88060_dt_ids), 381 381 }, 382 - .probe_new = pv88060_i2c_probe, 382 + .probe = pv88060_i2c_probe, 383 383 .id_table = pv88060_i2c_id, 384 384 }; 385 385
+1 -1
drivers/regulator/pv88080-regulator.c
··· 560 560 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 561 561 .of_match_table = of_match_ptr(pv88080_dt_ids), 562 562 }, 563 - .probe_new = pv88080_i2c_probe, 563 + .probe = pv88080_i2c_probe, 564 564 .id_table = pv88080_i2c_id, 565 565 }; 566 566
+1 -1
drivers/regulator/pv88090-regulator.c
··· 400 400 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 401 401 .of_match_table = of_match_ptr(pv88090_dt_ids), 402 402 }, 403 - .probe_new = pv88090_i2c_probe, 403 + .probe = pv88090_i2c_probe, 404 404 .id_table = pv88090_i2c_id, 405 405 }; 406 406
+1 -1
drivers/regulator/rpi-panel-attiny-regulator.c
··· 399 399 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 400 400 .of_match_table = of_match_ptr(attiny_dt_ids), 401 401 }, 402 - .probe_new = attiny_i2c_probe, 402 + .probe = attiny_i2c_probe, 403 403 .remove = attiny_i2c_remove, 404 404 }; 405 405
+1 -1
drivers/regulator/rt4801-regulator.c
··· 242 242 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 243 243 .of_match_table = of_match_ptr(rt4801_of_id), 244 244 }, 245 - .probe_new = rt4801_probe, 245 + .probe = rt4801_probe, 246 246 }; 247 247 module_i2c_driver(rt4801_driver); 248 248
+1 -1
drivers/regulator/rt5190a-regulator.c
··· 508 508 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 509 509 .of_match_table = rt5190a_device_table, 510 510 }, 511 - .probe_new = rt5190a_probe, 511 + .probe = rt5190a_probe, 512 512 }; 513 513 module_i2c_driver(rt5190a_driver); 514 514
+1 -1
drivers/regulator/rt5759-regulator.c
··· 362 362 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 363 363 .of_match_table = of_match_ptr(rt5759_device_table), 364 364 }, 365 - .probe_new = rt5759_probe, 365 + .probe = rt5759_probe, 366 366 }; 367 367 module_i2c_driver(rt5759_driver); 368 368
+1 -1
drivers/regulator/rt6160-regulator.c
··· 311 311 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 312 312 .of_match_table = rt6160_of_match_table, 313 313 }, 314 - .probe_new = rt6160_probe, 314 + .probe = rt6160_probe, 315 315 }; 316 316 module_i2c_driver(rt6160_driver); 317 317
+1 -1
drivers/regulator/rt6190-regulator.c
··· 487 487 .of_match_table = rt6190_of_dev_table, 488 488 .pm = pm_ptr(&rt6190_dev_pm), 489 489 }, 490 - .probe_new = rt6190_probe, 490 + .probe = rt6190_probe, 491 491 }; 492 492 module_i2c_driver(rt6190_driver); 493 493
+1 -1
drivers/regulator/rt6245-regulator.c
··· 246 246 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 247 247 .of_match_table = rt6245_of_match_table, 248 248 }, 249 - .probe_new = rt6245_probe, 249 + .probe = rt6245_probe, 250 250 }; 251 251 module_i2c_driver(rt6245_driver); 252 252
+1 -1
drivers/regulator/rtmv20-regulator.c
··· 429 429 .of_match_table = of_match_ptr(rtmv20_of_id), 430 430 .pm = &rtmv20_pm, 431 431 }, 432 - .probe_new = rtmv20_probe, 432 + .probe = rtmv20_probe, 433 433 }; 434 434 module_i2c_driver(rtmv20_driver); 435 435
+1 -1
drivers/regulator/rtq2134-regulator.c
··· 366 366 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 367 367 .of_match_table = rtq2134_device_tables, 368 368 }, 369 - .probe_new = rtq2134_probe, 369 + .probe = rtq2134_probe, 370 370 }; 371 371 module_i2c_driver(rtq2134_driver); 372 372
+1 -1
drivers/regulator/rtq6752-regulator.c
··· 281 281 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 282 282 .of_match_table = rtq6752_device_table, 283 283 }, 284 - .probe_new = rtq6752_probe, 284 + .probe = rtq6752_probe, 285 285 }; 286 286 module_i2c_driver(rtq6752_driver); 287 287
+1 -1
drivers/regulator/slg51000-regulator.c
··· 507 507 .name = "slg51000-regulator", 508 508 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 509 509 }, 510 - .probe_new = slg51000_i2c_probe, 510 + .probe = slg51000_i2c_probe, 511 511 .id_table = slg51000_i2c_id, 512 512 }; 513 513
+1 -1
drivers/regulator/sy8106a-regulator.c
··· 141 141 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 142 142 .of_match_table = sy8106a_i2c_of_match, 143 143 }, 144 - .probe_new = sy8106a_i2c_probe, 144 + .probe = sy8106a_i2c_probe, 145 145 .id_table = sy8106a_i2c_id, 146 146 }; 147 147
+1 -1
drivers/regulator/sy8824x.c
··· 236 236 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 237 237 .of_match_table = sy8824_dt_ids, 238 238 }, 239 - .probe_new = sy8824_i2c_probe, 239 + .probe = sy8824_i2c_probe, 240 240 .id_table = sy8824_id, 241 241 }; 242 242 module_i2c_driver(sy8824_regulator_driver);
+1 -1
drivers/regulator/sy8827n.c
··· 190 190 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 191 191 .of_match_table = sy8827n_dt_ids, 192 192 }, 193 - .probe_new = sy8827n_i2c_probe, 193 + .probe = sy8827n_i2c_probe, 194 194 .id_table = sy8827n_id, 195 195 }; 196 196 module_i2c_driver(sy8827n_regulator_driver);
+1 -1
drivers/regulator/tps51632-regulator.c
··· 354 354 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 355 355 .of_match_table = of_match_ptr(tps51632_of_match), 356 356 }, 357 - .probe_new = tps51632_probe, 357 + .probe = tps51632_probe, 358 358 .id_table = tps51632_id, 359 359 }; 360 360
+1 -1
drivers/regulator/tps62360-regulator.c
··· 491 491 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 492 492 .of_match_table = of_match_ptr(tps62360_of_match), 493 493 }, 494 - .probe_new = tps62360_probe, 494 + .probe = tps62360_probe, 495 495 .shutdown = tps62360_shutdown, 496 496 .id_table = tps62360_id, 497 497 };
+1 -1
drivers/regulator/tps6286x-regulator.c
··· 150 150 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 151 151 .of_match_table = of_match_ptr(tps6286x_dt_ids), 152 152 }, 153 - .probe_new = tps6286x_i2c_probe, 153 + .probe = tps6286x_i2c_probe, 154 154 .id_table = tps6286x_i2c_id, 155 155 }; 156 156
+1 -1
drivers/regulator/tps65023-regulator.c
··· 337 337 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 338 338 .of_match_table = of_match_ptr(tps65023_of_match), 339 339 }, 340 - .probe_new = tps_65023_probe, 340 + .probe = tps_65023_probe, 341 341 .id_table = tps_65023_id, 342 342 }; 343 343
+1 -1
drivers/regulator/tps65132-regulator.c
··· 272 272 .name = "tps65132", 273 273 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 274 274 }, 275 - .probe_new = tps65132_probe, 275 + .probe = tps65132_probe, 276 276 .id_table = tps65132_id, 277 277 }; 278 278