Skip to content

Commit f57c2ea

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
backlight: adp8860: 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]> Acked-by: Michael Hennerich <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6622337 commit f57c2ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/video/backlight/adp8860_bl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,9 +648,9 @@ static const struct attribute_group adp8860_bl_attr_group = {
648648
.attrs = adp8860_bl_attributes,
649649
};
650650

651-
static int adp8860_probe(struct i2c_client *client,
652-
const struct i2c_device_id *id)
651+
static int adp8860_probe(struct i2c_client *client)
653652
{
653+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
654654
struct backlight_device *bl;
655655
struct adp8860_bl *data;
656656
struct adp8860_backlight_platform_data *pdata =
@@ -803,7 +803,7 @@ static struct i2c_driver adp8860_driver = {
803803
.name = KBUILD_MODNAME,
804804
.pm = &adp8860_i2c_pm_ops,
805805
},
806-
.probe = adp8860_probe,
806+
.probe_new = adp8860_probe,
807807
.remove = adp8860_remove,
808808
.id_table = adp8860_id,
809809
};

0 commit comments

Comments
 (0)