summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-11-18 23:40:03 +0100
committerLee Jones <lee@kernel.org>2023-01-30 09:03:18 +0100
commit65c084d848cd717d5913032dfa9e9c62ed33babd (patch)
treef5cf02fc7f8ebd392cbf46b417a3177eba0dfb99 /drivers
parentleds: bd2802: Convert to i2c's .probe_new() (diff)
downloadlinux-65c084d848cd717d5913032dfa9e9c62ed33babd.tar.xz
linux-65c084d848cd717d5913032dfa9e9c62ed33babd.zip
leds: blinkm: 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-270-uwe@kleine-koenig.org
Diffstat (limited to 'drivers')
-rw-r--r--drivers/leds/leds-blinkm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/leds/leds-blinkm.c b/drivers/leds/leds-blinkm.c
index e19cc8a7b7ca..37f2f32ae42d 100644
--- a/drivers/leds/leds-blinkm.c
+++ b/drivers/leds/leds-blinkm.c
@@ -565,8 +565,7 @@ static int blinkm_detect(struct i2c_client *client, struct i2c_board_info *info)
return 0;
}
-static int blinkm_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int blinkm_probe(struct i2c_client *client)
{
struct blinkm_data *data;
struct blinkm_led *led[3];
@@ -731,7 +730,7 @@ static struct i2c_driver blinkm_driver = {
.driver = {
.name = "blinkm",
},
- .probe = blinkm_probe,
+ .probe_new = blinkm_probe,
.remove = blinkm_remove,
.id_table = blinkm_id,
.detect = blinkm_detect,