diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-11-18 23:40:11 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-01-30 08:03:24 +0000 |
commit | 1ba5916064e70095604832f9ed8a9fe9701c2dd5 (patch) | |
tree | 7ed74378618da8ed0e1b82b582bbc6a73a921a07 /drivers/leds/leds-lp3944.c | |
parent | 90955588fff6a56152943831c3c70446b6b907fb (diff) | |
download | linux-stable-1ba5916064e70095604832f9ed8a9fe9701c2dd5.tar.gz linux-stable-1ba5916064e70095604832f9ed8a9fe9701c2dd5.tar.bz2 linux-stable-1ba5916064e70095604832f9ed8a9fe9701c2dd5.zip |
leds: lp3944: 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/20221118224540.619276-278-uwe@kleine-koenig.org
Diffstat (limited to 'drivers/leds/leds-lp3944.c')
-rw-r--r-- | drivers/leds/leds-lp3944.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/leds/leds-lp3944.c b/drivers/leds/leds-lp3944.c index 673ad8c04f41..be47c66b2e00 100644 --- a/drivers/leds/leds-lp3944.c +++ b/drivers/leds/leds-lp3944.c @@ -359,8 +359,7 @@ exit: return err; } -static int lp3944_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lp3944_probe(struct i2c_client *client) { struct lp3944_platform_data *lp3944_pdata = dev_get_platdata(&client->dev); @@ -428,7 +427,7 @@ static struct i2c_driver lp3944_driver = { .driver = { .name = "lp3944", }, - .probe = lp3944_probe, + .probe_new = lp3944_probe, .remove = lp3944_remove, .id_table = lp3944_id, }; |