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

drm/i2c/tda9950: 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-41-uwe@kleine-koenig.org
parent 29ef7605
...@@ -375,8 +375,7 @@ static void tda9950_cec_del(void *data) ...@@ -375,8 +375,7 @@ static void tda9950_cec_del(void *data)
cec_delete_adapter(priv->adap); cec_delete_adapter(priv->adap);
} }
static int tda9950_probe(struct i2c_client *client, static int tda9950_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct tda9950_glue *glue = client->dev.platform_data; struct tda9950_glue *glue = client->dev.platform_data;
struct device *dev = &client->dev; struct device *dev = &client->dev;
...@@ -493,7 +492,7 @@ static struct i2c_device_id tda9950_ids[] = { ...@@ -493,7 +492,7 @@ static struct i2c_device_id tda9950_ids[] = {
MODULE_DEVICE_TABLE(i2c, tda9950_ids); MODULE_DEVICE_TABLE(i2c, tda9950_ids);
static struct i2c_driver tda9950_driver = { static struct i2c_driver tda9950_driver = {
.probe = tda9950_probe, .probe_new = tda9950_probe,
.remove = tda9950_remove, .remove = tda9950_remove,
.driver = { .driver = {
.name = "tda9950", .name = "tda9950",
......
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