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

drm/panel: olimex-lcd-olinuxino: 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-43-uwe@kleine-koenig.org

authored by

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

+2 -3
+2 -3
drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c
··· 202 202 .get_modes = lcd_olinuxino_get_modes, 203 203 }; 204 204 205 - static int lcd_olinuxino_probe(struct i2c_client *client, 206 - const struct i2c_device_id *id) 205 + static int lcd_olinuxino_probe(struct i2c_client *client) 207 206 { 208 207 struct device *dev = &client->dev; 209 208 struct lcd_olinuxino *lcd; ··· 308 309 .name = "lcd_olinuxino", 309 310 .of_match_table = lcd_olinuxino_of_ids, 310 311 }, 311 - .probe = lcd_olinuxino_probe, 312 + .probe_new = lcd_olinuxino_probe, 312 313 .remove = lcd_olinuxino_remove, 313 314 }; 314 315