media: i2c: Convert to new i2c device probe()
The I2C core framework provides a simplified probe framework from commit
b8a1a4cd5a
("i2c: Provide a temporary .probe_new() call-back type").
These drivers do not utilise the i2c_device_id table in the probe, so we
can easily convert them to utilise the simplified i2c driver
registration.
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Acked-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:

کامیت شده توسط
Mauro Carvalho Chehab

والد
bec5352d20
کامیت
e671499303
@@ -2936,8 +2936,7 @@ power_off:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int ov5640_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int ov5640_probe(struct i2c_client *client)
|
||||
{
|
||||
struct device *dev = &client->dev;
|
||||
struct fwnode_handle *endpoint;
|
||||
@@ -3100,7 +3099,7 @@ static struct i2c_driver ov5640_i2c_driver = {
|
||||
.of_match_table = ov5640_dt_ids,
|
||||
},
|
||||
.id_table = ov5640_id,
|
||||
.probe = ov5640_probe,
|
||||
.probe_new = ov5640_probe,
|
||||
.remove = ov5640_remove,
|
||||
};
|
||||
|
||||
|
مرجع در شماره جدید
Block a user