Skip to content

Commit 60aa101

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
backlight: lp855x: Convert to i2c's .probe_new()
.probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. 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 3065efe commit 60aa101

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/video/backlight/lp855x_bl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,9 @@ static int lp855x_parse_acpi(struct lp855x *lp)
394394
return 0;
395395
}
396396

397-
static int lp855x_probe(struct i2c_client *cl, const struct i2c_device_id *id)
397+
static int lp855x_probe(struct i2c_client *cl)
398398
{
399+
const struct i2c_device_id *id = i2c_client_get_device_id(cl);
399400
const struct acpi_device_id *acpi_id = NULL;
400401
struct device *dev = &cl->dev;
401402
struct lp855x *lp;
@@ -586,7 +587,7 @@ static struct i2c_driver lp855x_driver = {
586587
.of_match_table = of_match_ptr(lp855x_dt_ids),
587588
.acpi_match_table = ACPI_PTR(lp855x_acpi_match),
588589
},
589-
.probe = lp855x_probe,
590+
.probe_new = lp855x_probe,
590591
.remove = lp855x_remove,
591592
.id_table = lp855x_ids,
592593
};

0 commit comments

Comments
 (0)