Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221118224540.619276-44-uwe@kleine-koenig.org

authored by

Uwe Kleine-König and committed by
Javier Martinez Canillas
0e4dcffd 44675757

+2 -3
+2 -3
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
··· 362 362 .get_modes = rpi_touchscreen_get_modes, 363 363 }; 364 364 365 - static int rpi_touchscreen_probe(struct i2c_client *i2c, 366 - const struct i2c_device_id *id) 365 + static int rpi_touchscreen_probe(struct i2c_client *i2c) 367 366 { 368 367 struct device *dev = &i2c->dev; 369 368 struct rpi_touchscreen *ts; ··· 490 491 .name = "rpi_touchscreen", 491 492 .of_match_table = rpi_touchscreen_of_ids, 492 493 }, 493 - .probe = rpi_touchscreen_probe, 494 + .probe_new = rpi_touchscreen_probe, 494 495 .remove = rpi_touchscreen_remove, 495 496 }; 496 497