Skip to content

Commit 0de796b

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
backlight: tosa: 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 5867af2 commit 0de796b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/video/backlight/tosa_bl.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ static const struct backlight_ops bl_ops = {
7575
.update_status = tosa_bl_update_status,
7676
};
7777

78-
static int tosa_bl_probe(struct i2c_client *client,
79-
const struct i2c_device_id *id)
78+
static int tosa_bl_probe(struct i2c_client *client)
8079
{
8180
struct backlight_properties props;
8281
struct tosa_bl_data *data;
@@ -160,7 +159,7 @@ static struct i2c_driver tosa_bl_driver = {
160159
.name = "tosa-bl",
161160
.pm = &tosa_bl_pm_ops,
162161
},
163-
.probe = tosa_bl_probe,
162+
.probe_new = tosa_bl_probe,
164163
.remove = tosa_bl_remove,
165164
.id_table = tosa_bl_id,
166165
};

0 commit comments

Comments
 (0)