Skip to content

Commit 5867af2

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
backlight: lv5207lp: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 60aa101 commit 5867af2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/video/backlight/lv5207lp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ static const struct backlight_ops lv5207lp_backlight_ops = {
7676
.check_fb = lv5207lp_backlight_check_fb,
7777
};
7878

79-
static int lv5207lp_probe(struct i2c_client *client,
80-
const struct i2c_device_id *id)
79+
static int lv5207lp_probe(struct i2c_client *client)
8180
{
8281
struct lv5207lp_platform_data *pdata = dev_get_platdata(&client->dev);
8382
struct backlight_device *backlight;
@@ -142,7 +141,7 @@ static struct i2c_driver lv5207lp_driver = {
142141
.driver = {
143142
.name = "lv5207lp",
144143
},
145-
.probe = lv5207lp_probe,
144+
.probe_new = lv5207lp_probe,
146145
.remove = lv5207lp_remove,
147146
.id_table = lv5207lp_ids,
148147
};

0 commit comments

Comments
 (0)