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

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

Also fix two indention inconsistencies in the neighbourhood.

Signed-off-by: default avatarUwe 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: default avatarLee Jones <lee@kernel.org>
parent ae9c4808
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -803,7 +803,7 @@ static struct i2c_driver adp8860_driver = {
		.name	= KBUILD_MODNAME,
		.pm	= &adp8860_i2c_pm_ops,
	},
	.probe_new = adp8860_probe,
	.probe = adp8860_probe,
	.remove = adp8860_remove,
	.id_table = adp8860_id,
};
+2 −2
Original line number Diff line number Diff line
@@ -973,7 +973,7 @@ static struct i2c_driver adp8870_driver = {
		.name	= KBUILD_MODNAME,
		.pm	= &adp8870_i2c_pm_ops,
	},
	.probe_new = adp8870_probe,
	.probe = adp8870_probe,
	.remove = adp8870_remove,
	.id_table = adp8870_id,
};
+1 −1
Original line number Diff line number Diff line
@@ -392,7 +392,7 @@ static struct i2c_driver arcxcnn_driver = {
		.name = "arcxcnn_bl",
		.of_match_table = arcxcnn_dt_ids,
	},
	.probe_new = arcxcnn_probe,
	.probe = arcxcnn_probe,
	.remove = arcxcnn_remove,
	.id_table = arcxcnn_ids,
};
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ static struct i2c_driver bd6107_driver = {
	.driver = {
		.name = "bd6107",
	},
	.probe_new = bd6107_probe,
	.probe = bd6107_probe,
	.remove = bd6107_remove,
	.id_table = bd6107_ids,
};
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ static struct i2c_driver ktz8866_driver = {
		.name = "ktz8866",
		.of_match_table = ktz8866_match_table,
	},
	.probe_new = ktz8866_probe,
	.probe = ktz8866_probe,
	.remove = ktz8866_remove,
	.id_table = ktz8866_ids,
};
Loading