Skip to content

Commit ad614f8

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/video/backlight/ktz8866.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ static void ktz8866_init(struct ktz8866 *ktz)
124124
ktz8866_write(ktz, LCD_BIAS_CFG1, LCD_BIAS_EN);
125125
}
126126

127-
static int ktz8866_probe(struct i2c_client *client,
128-
const struct i2c_device_id *id)
127+
static int ktz8866_probe(struct i2c_client *client)
129128
{
130129
struct backlight_device *backlight_dev;
131130
struct backlight_properties props;
@@ -197,7 +196,7 @@ static struct i2c_driver ktz8866_driver = {
197196
.name = "ktz8866",
198197
.of_match_table = ktz8866_match_table,
199198
},
200-
.probe = ktz8866_probe,
199+
.probe_new = ktz8866_probe,
201200
.remove = ktz8866_remove,
202201
.id_table = ktz8866_ids,
203202
};

0 commit comments

Comments
 (0)