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

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

Also fix two indention inconsistencies in the neighbourhood.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230521143844.375244-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Uwe Kleine-König and committed by
Lee Jones
29554f2e ae9c4808

+11 -11
+2 -2
drivers/video/backlight/adp8860_bl.c
··· 803 803 .name = KBUILD_MODNAME, 804 804 .pm = &adp8860_i2c_pm_ops, 805 805 }, 806 - .probe_new = adp8860_probe, 807 - .remove = adp8860_remove, 806 + .probe = adp8860_probe, 807 + .remove = adp8860_remove, 808 808 .id_table = adp8860_id, 809 809 }; 810 810
+2 -2
drivers/video/backlight/adp8870_bl.c
··· 973 973 .name = KBUILD_MODNAME, 974 974 .pm = &adp8870_i2c_pm_ops, 975 975 }, 976 - .probe_new = adp8870_probe, 977 - .remove = adp8870_remove, 976 + .probe = adp8870_probe, 977 + .remove = adp8870_remove, 978 978 .id_table = adp8870_id, 979 979 }; 980 980
+1 -1
drivers/video/backlight/arcxcnn_bl.c
··· 392 392 .name = "arcxcnn_bl", 393 393 .of_match_table = arcxcnn_dt_ids, 394 394 }, 395 - .probe_new = arcxcnn_probe, 395 + .probe = arcxcnn_probe, 396 396 .remove = arcxcnn_remove, 397 397 .id_table = arcxcnn_ids, 398 398 };
+1 -1
drivers/video/backlight/bd6107.c
··· 192 192 .driver = { 193 193 .name = "bd6107", 194 194 }, 195 - .probe_new = bd6107_probe, 195 + .probe = bd6107_probe, 196 196 .remove = bd6107_remove, 197 197 .id_table = bd6107_ids, 198 198 };
+1 -1
drivers/video/backlight/ktz8866.c
··· 196 196 .name = "ktz8866", 197 197 .of_match_table = ktz8866_match_table, 198 198 }, 199 - .probe_new = ktz8866_probe, 199 + .probe = ktz8866_probe, 200 200 .remove = ktz8866_remove, 201 201 .id_table = ktz8866_ids, 202 202 };
+1 -1
drivers/video/backlight/lm3630a_bl.c
··· 620 620 .name = LM3630A_NAME, 621 621 .of_match_table = lm3630a_match_table, 622 622 }, 623 - .probe_new = lm3630a_probe, 623 + .probe = lm3630a_probe, 624 624 .remove = lm3630a_remove, 625 625 .id_table = lm3630a_id, 626 626 };
+1 -1
drivers/video/backlight/lm3639_bl.c
··· 411 411 .driver = { 412 412 .name = LM3639_NAME, 413 413 }, 414 - .probe_new = lm3639_probe, 414 + .probe = lm3639_probe, 415 415 .remove = lm3639_remove, 416 416 .id_table = lm3639_id, 417 417 };
+1 -1
drivers/video/backlight/lp855x_bl.c
··· 587 587 .of_match_table = of_match_ptr(lp855x_dt_ids), 588 588 .acpi_match_table = ACPI_PTR(lp855x_acpi_match), 589 589 }, 590 - .probe_new = lp855x_probe, 590 + .probe = lp855x_probe, 591 591 .remove = lp855x_remove, 592 592 .id_table = lp855x_ids, 593 593 };
+1 -1
drivers/video/backlight/lv5207lp.c
··· 141 141 .driver = { 142 142 .name = "lv5207lp", 143 143 }, 144 - .probe_new = lv5207lp_probe, 144 + .probe = lv5207lp_probe, 145 145 .remove = lv5207lp_remove, 146 146 .id_table = lv5207lp_ids, 147 147 };