Skip to content

Commit

Permalink
backlight: lv5207lp: Convert to i2c's .probe_new()
Browse files Browse the repository at this point in the history
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 <u.kleine-koenig@pengutronix.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-593-uwe@kleine-koenig.org
  • Loading branch information
Uwe Kleine-König authored and Lee Jones committed Dec 7, 2022
1 parent 60aa101 commit 5867af2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/video/backlight/lv5207lp.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ static const struct backlight_ops lv5207lp_backlight_ops = {
.check_fb = lv5207lp_backlight_check_fb,
};

static int lv5207lp_probe(struct i2c_client *client,
const struct i2c_device_id *id)
static int lv5207lp_probe(struct i2c_client *client)
{
struct lv5207lp_platform_data *pdata = dev_get_platdata(&client->dev);
struct backlight_device *backlight;
Expand Down Expand Up @@ -142,7 +141,7 @@ static struct i2c_driver lv5207lp_driver = {
.driver = {
.name = "lv5207lp",
},
.probe = lv5207lp_probe,
.probe_new = lv5207lp_probe,
.remove = lv5207lp_remove,
.id_table = lv5207lp_ids,
};
Expand Down

0 comments on commit 5867af2

Please sign in to comment.