Commit 1975d167 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Guenter Roeck
Browse files

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



After commit b8a1a4cd ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f4 ("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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230505131718.1210071-1-u.kleine-koenig@pengutronix.de


[groeck: Added missing change in pmbus/acbel-fsg032.c]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 339c8f24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ static struct i2c_driver ad7414_driver = {
		.name	= "ad7414",
		.of_match_table = of_match_ptr(ad7414_of_match),
	},
	.probe_new = ad7414_probe,
	.probe = ad7414_probe,
	.id_table = ad7414_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ static struct i2c_driver ad7418_driver = {
		.name	= "ad7418",
		.of_match_table = ad7418_dt_ids,
	},
	.probe_new	= ad7418_probe,
	.probe		= ad7418_probe,
	.id_table	= ad7418_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -521,7 +521,7 @@ static struct i2c_driver adc128_driver = {
		.name	= "adc128d818",
		.of_match_table = of_match_ptr(adc128_of_match),
	},
	.probe_new	= adc128_probe,
	.probe		= adc128_probe,
	.remove		= adc128_remove,
	.id_table	= adc128_id,
	.detect		= adc128_detect,
+1 −1
Original line number Diff line number Diff line
@@ -488,7 +488,7 @@ static struct i2c_driver adm1021_driver = {
	.driver = {
		.name	= "adm1021",
	},
	.probe_new	= adm1021_probe,
	.probe		= adm1021_probe,
	.id_table	= adm1021_id,
	.detect		= adm1021_detect,
	.address_list	= normal_i2c,
+1 −1
Original line number Diff line number Diff line
@@ -559,7 +559,7 @@ static struct i2c_driver adm1025_driver = {
	.driver = {
		.name	= "adm1025",
	},
	.probe_new	= adm1025_probe,
	.probe		= adm1025_probe,
	.id_table	= adm1025_id,
	.detect		= adm1025_detect,
	.address_list	= normal_i2c,
Loading