Commit ad614f81 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Lee Jones

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230127152639.1347229-1-u.kleine-koenig@pengutronix.de
parent f8449c8f
...@@ -124,8 +124,7 @@ static void ktz8866_init(struct ktz8866 *ktz) ...@@ -124,8 +124,7 @@ static void ktz8866_init(struct ktz8866 *ktz)
ktz8866_write(ktz, LCD_BIAS_CFG1, LCD_BIAS_EN); ktz8866_write(ktz, LCD_BIAS_CFG1, LCD_BIAS_EN);
} }
static int ktz8866_probe(struct i2c_client *client, static int ktz8866_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct backlight_device *backlight_dev; struct backlight_device *backlight_dev;
struct backlight_properties props; struct backlight_properties props;
...@@ -197,7 +196,7 @@ static struct i2c_driver ktz8866_driver = { ...@@ -197,7 +196,7 @@ static struct i2c_driver ktz8866_driver = {
.name = "ktz8866", .name = "ktz8866",
.of_match_table = ktz8866_match_table, .of_match_table = ktz8866_match_table,
}, },
.probe = ktz8866_probe, .probe_new = ktz8866_probe,
.remove = ktz8866_remove, .remove = ktz8866_remove,
.id_table = ktz8866_ids, .id_table = ktz8866_ids,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment