media: dvb-frontends/si2165: 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> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
db33c3cd83
commit
3be25b9ee3
|
@ -1144,8 +1144,7 @@ static const struct dvb_frontend_ops si2165_ops = {
|
|||
.read_ber = si2165_read_ber,
|
||||
};
|
||||
|
||||
static int si2165_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int si2165_probe(struct i2c_client *client)
|
||||
{
|
||||
struct si2165_state *state = NULL;
|
||||
struct si2165_platform_data *pdata = client->dev.platform_data;
|
||||
|
@ -1293,7 +1292,7 @@ static struct i2c_driver si2165_driver = {
|
|||
.driver = {
|
||||
.name = "si2165",
|
||||
},
|
||||
.probe = si2165_probe,
|
||||
.probe_new = si2165_probe,
|
||||
.remove = si2165_remove,
|
||||
.id_table = si2165_id_table,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue