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

drm/i2c/tda998x: 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-42-uwe@kleine-koenig.org

authored by

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

+2 -2
+2 -2
drivers/gpu/drm/i2c/tda998x_drv.c
··· 2057 2057 }; 2058 2058 2059 2059 static int 2060 - tda998x_probe(struct i2c_client *client, const struct i2c_device_id *id) 2060 + tda998x_probe(struct i2c_client *client) 2061 2061 { 2062 2062 int ret; 2063 2063 ··· 2097 2097 MODULE_DEVICE_TABLE(i2c, tda998x_ids); 2098 2098 2099 2099 static struct i2c_driver tda998x_driver = { 2100 - .probe = tda998x_probe, 2100 + .probe_new = tda998x_probe, 2101 2101 .remove = tda998x_remove, 2102 2102 .driver = { 2103 2103 .name = "tda998x",