diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-01-27 16:26:39 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-02-22 10:55:28 +0000 |
commit | ad614f81d2e8b9704478921935c75ccd4024b854 (patch) | |
tree | cf80a875842bf875c694079ec7036dd97331c28d | |
parent | f8449c8f73552b82e2a29dfdb99df54bd3a5aafc (diff) |
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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230127152639.1347229-1-u.kleine-koenig@pengutronix.de
-rw-r--r-- | drivers/video/backlight/ktz8866.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/backlight/ktz8866.c b/drivers/video/backlight/ktz8866.c index 97b723719e13..d38c13ad39c7 100644 --- a/drivers/video/backlight/ktz8866.c +++ b/drivers/video/backlight/ktz8866.c @@ -124,8 +124,7 @@ static void ktz8866_init(struct ktz8866 *ktz) ktz8866_write(ktz, LCD_BIAS_CFG1, LCD_BIAS_EN); } -static int ktz8866_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ktz8866_probe(struct i2c_client *client) { struct backlight_device *backlight_dev; struct backlight_properties props; @@ -197,7 +196,7 @@ static struct i2c_driver ktz8866_driver = { .name = "ktz8866", .of_match_table = ktz8866_match_table, }, - .probe = ktz8866_probe, + .probe_new = ktz8866_probe, .remove = ktz8866_remove, .id_table = ktz8866_ids, }; |