Commit d9ff8a8e authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Lee Jones
Browse files

leds: 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/20230517180559.166329-1-u.kleine-koenig@pengutronix.de


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent b0f379bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -759,7 +759,7 @@ static struct i2c_driver as3645a_i2c_driver = {
		.of_match_table = as3645a_of_table,
		.name = AS_NAME,
	},
	.probe_new	= as3645a_probe,
	.probe = as3645a_probe,
	.remove	= as3645a_remove,
	.id_table = as3645a_id_table,
};
+1 −1
Original line number Diff line number Diff line
@@ -471,7 +471,7 @@ static struct i2c_driver lm3601x_i2c_driver = {
		.name = "lm3601x",
		.of_match_table = of_lm3601x_leds_match,
	},
	.probe_new = lm3601x_probe,
	.probe = lm3601x_probe,
	.remove = lm3601x_remove,
	.id_table = lm3601x_id,
};
+1 −1
Original line number Diff line number Diff line
@@ -419,7 +419,7 @@ static struct i2c_driver rt4505_driver = {
		.name = "rt4505",
		.of_match_table = of_match_ptr(rt4505_leds_match),
	},
	.probe_new = rt4505_probe,
	.probe = rt4505_probe,
	.remove = rt4505_remove,
	.shutdown = rt4505_shutdown,
};
+1 −1
Original line number Diff line number Diff line
@@ -346,7 +346,7 @@ static struct i2c_driver an30259a_driver = {
		.name = "leds-an30259a",
		.of_match_table = of_match_ptr(an30259a_match_table),
	},
	.probe_new = an30259a_probe,
	.probe = an30259a_probe,
	.remove = an30259a_remove,
	.id_table = an30259a_id,
};
+1 −1
Original line number Diff line number Diff line
@@ -422,7 +422,7 @@ static struct i2c_driver aw2013_driver = {
		.name = "leds-aw2013",
		.of_match_table = of_match_ptr(aw2013_match_table),
	},
	.probe_new = aw2013_probe,
	.probe = aw2013_probe,
	.remove = aw2013_remove,
};

Loading