Commit 0e4dcffd authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Javier Martinez Canillas

drm/panel: raspberrypi-touchscreen: 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>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221118224540.619276-44-uwe@kleine-koenig.org
parent 44675757
...@@ -362,8 +362,7 @@ static const struct drm_panel_funcs rpi_touchscreen_funcs = { ...@@ -362,8 +362,7 @@ static const struct drm_panel_funcs rpi_touchscreen_funcs = {
.get_modes = rpi_touchscreen_get_modes, .get_modes = rpi_touchscreen_get_modes,
}; };
static int rpi_touchscreen_probe(struct i2c_client *i2c, static int rpi_touchscreen_probe(struct i2c_client *i2c)
const struct i2c_device_id *id)
{ {
struct device *dev = &i2c->dev; struct device *dev = &i2c->dev;
struct rpi_touchscreen *ts; struct rpi_touchscreen *ts;
...@@ -491,7 +490,7 @@ static struct i2c_driver rpi_touchscreen_driver = { ...@@ -491,7 +490,7 @@ static struct i2c_driver rpi_touchscreen_driver = {
.name = "rpi_touchscreen", .name = "rpi_touchscreen",
.of_match_table = rpi_touchscreen_of_ids, .of_match_table = rpi_touchscreen_of_ids,
}, },
.probe = rpi_touchscreen_probe, .probe_new = rpi_touchscreen_probe,
.remove = rpi_touchscreen_remove, .remove = rpi_touchscreen_remove,
}; };
......
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