projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5867af2
)
backlight: tosa: Convert to i2c's .probe_new()
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:45:27 +0000
(23:45 +0100)
committer
Lee Jones
<lee@kernel.org>
Wed, 7 Dec 2022 13:33:03 +0000
(13:33 +0000)
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>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link:
https://lore.kernel.org/r/20221118224540.619276-594-uwe@kleine-koenig.org
drivers/video/backlight/tosa_bl.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/tosa_bl.c
b/drivers/video/backlight/tosa_bl.c
index
f55b3d6
..
77b71f6
100644
(file)
--- a/
drivers/video/backlight/tosa_bl.c
+++ b/
drivers/video/backlight/tosa_bl.c
@@
-75,8
+75,7
@@
static const struct backlight_ops bl_ops = {
.update_status = tosa_bl_update_status,
};
-static int tosa_bl_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int tosa_bl_probe(struct i2c_client *client)
{
struct backlight_properties props;
struct tosa_bl_data *data;
@@
-160,7
+159,7
@@
static struct i2c_driver tosa_bl_driver = {
.name = "tosa-bl",
.pm = &tosa_bl_pm_ops,
},
- .probe
= tosa_bl_probe,
+ .probe
_new
= tosa_bl_probe,
.remove = tosa_bl_remove,
.id_table = tosa_bl_id,
};