Commit b41cabb7 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Bartosz Golaszewski
Browse files

gpio: 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>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 2c99754e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -535,7 +535,7 @@ static struct i2c_driver adnp_i2c_driver = {
		.name = "gpio-adnp",
		.of_match_table = adnp_of_match,
	},
	.probe_new = adnp_i2c_probe,
	.probe = adnp_i2c_probe,
	.id_table = adnp_i2c_id,
};
module_i2c_driver(adnp_i2c_driver);
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ static struct i2c_driver fxl6408_driver = {
		.name	= "fxl6408",
		.of_match_table = fxl6408_dt_ids,
	},
	.probe_new	= fxl6408_probe,
	.probe		= fxl6408_probe,
	.id_table	= fxl6408_id,
};
module_i2c_driver(fxl6408_driver);
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ static struct i2c_driver gw_pld_driver = {
		.name = "gw_pld",
		.of_match_table = gw_pld_dt_ids,
	},
	.probe_new = gw_pld_probe,
	.probe = gw_pld_probe,
	.id_table = gw_pld_id,
};
module_i2c_driver(gw_pld_driver);
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ static struct i2c_driver max7300_driver = {
	.driver = {
		.name = "max7300",
	},
	.probe_new = max7300_probe,
	.probe = max7300_probe,
	.remove = max7300_remove,
	.id_table = max7300_id,
};
+1 −1
Original line number Diff line number Diff line
@@ -711,7 +711,7 @@ static struct i2c_driver max732x_driver = {
		.name		= "max732x",
		.of_match_table	= of_match_ptr(max732x_of_table),
	},
	.probe_new	= max732x_probe,
	.probe		= max732x_probe,
	.id_table	= max732x_id,
};

Loading