Commit 5e568089 authored by Kieran Bingham's avatar Kieran Bingham Committed by Mauro Carvalho Chehab

media: radio: si470x: Convert to new i2c device probe()

The I2C core framework provides a simplified probe framework from commit
b8a1a4cd ("i2c: Provide a temporary .probe_new() call-back type").

This driver does not utilise the i2c_device_id table in the probe, so we can
easily convert it to utilise the simplified i2c driver registration.
Signed-off-by: default avatarKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 7bb823a6
...@@ -330,8 +330,7 @@ static irqreturn_t si470x_i2c_interrupt(int irq, void *dev_id) ...@@ -330,8 +330,7 @@ static irqreturn_t si470x_i2c_interrupt(int irq, void *dev_id)
/* /*
* si470x_i2c_probe - probe for the device * si470x_i2c_probe - probe for the device
*/ */
static int si470x_i2c_probe(struct i2c_client *client, static int si470x_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct si470x_device *radio; struct si470x_device *radio;
int retval = 0; int retval = 0;
...@@ -544,7 +543,7 @@ static struct i2c_driver si470x_i2c_driver = { ...@@ -544,7 +543,7 @@ static struct i2c_driver si470x_i2c_driver = {
.pm = &si470x_i2c_pm, .pm = &si470x_i2c_pm,
#endif #endif
}, },
.probe = si470x_i2c_probe, .probe_new = si470x_i2c_probe,
.remove = si470x_i2c_remove, .remove = si470x_i2c_remove,
.id_table = si470x_i2c_id, .id_table = si470x_i2c_id,
}; };
......
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