Skip to content

Commit e78b28b

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
backlight: adp8870: 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 f57c2ea commit e78b28b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/video/backlight/adp8870_bl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,9 +836,9 @@ static const struct attribute_group adp8870_bl_attr_group = {
836836
.attrs = adp8870_bl_attributes,
837837
};
838838

839-
static int adp8870_probe(struct i2c_client *client,
840-
const struct i2c_device_id *id)
839+
static int adp8870_probe(struct i2c_client *client)
841840
{
841+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
842842
struct backlight_properties props;
843843
struct backlight_device *bl;
844844
struct adp8870_bl *data;
@@ -973,7 +973,7 @@ static struct i2c_driver adp8870_driver = {
973973
.name = KBUILD_MODNAME,
974974
.pm = &adp8870_i2c_pm_ops,
975975
},
976-
.probe = adp8870_probe,
976+
.probe_new = adp8870_probe,
977977
.remove = adp8870_remove,
978978
.id_table = adp8870_id,
979979
};

0 commit comments

Comments
 (0)