Commit 7126a2ae authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Greg Kroah-Hartman
Browse files

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

While touching hd3ss3220.c fix a minor white space issue in the
definition of struct hd3ss3220_driver.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230517181528.167115-1-u.kleine-koenig@pengutronix.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 31243875
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -746,7 +746,7 @@ static struct i2c_driver usb251xb_i2c_driver = {
		.of_match_table = usb251xb_of_match,
		.pm = &usb251xb_pm_ops,
	},
	.probe_new = usb251xb_i2c_probe,
	.probe = usb251xb_i2c_probe,
	.id_table = usb251xb_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -411,7 +411,7 @@ static struct i2c_driver usb3503_i2c_driver = {
		.pm = pm_ptr(&usb3503_i2c_pm_ops),
		.of_match_table = of_match_ptr(usb3503_of_match),
	},
	.probe_new	= usb3503_i2c_probe,
	.probe		= usb3503_i2c_probe,
	.remove		= usb3503_i2c_remove,
	.id_table	= usb3503_id,
};
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ static struct i2c_driver usb4604_i2c_driver = {
		.pm = pm_ptr(&usb4604_i2c_pm_ops),
		.of_match_table = of_match_ptr(usb4604_of_match),
	},
	.probe_new	= usb4604_i2c_probe,
	.probe		= usb4604_i2c_probe,
	.id_table	= usb4604_id,
};
module_i2c_driver(usb4604_i2c_driver);
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ static struct i2c_driver isp1301_driver = {
		.name = DRV_NAME,
		.of_match_table = isp1301_of_match,
	},
	.probe_new = isp1301_probe,
	.probe = isp1301_probe,
	.remove = isp1301_remove,
	.id_table = isp1301_id,
};
+1 −1
Original line number Diff line number Diff line
@@ -1584,7 +1584,7 @@ static struct i2c_driver anx7411_driver = {
		.of_match_table = anx_match_table,
		.pm = &anx7411_pm_ops,
	},
	.probe_new = anx7411_i2c_probe,
	.probe = anx7411_i2c_probe,
	.remove = anx7411_i2c_remove,

	.id_table = anx7411_id,
Loading