mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
media: i2c: ov5695: 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. Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Link: https://lore.kernel.org/lkml/20221121102705.16092-1-u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
This commit is contained in:
parent
e60289897e
commit
79e070c5ee
1 changed files with 2 additions and 3 deletions
|
@ -1267,8 +1267,7 @@ static int ov5695_configure_regulators(struct ov5695 *ov5695)
|
||||||
ov5695->supplies);
|
ov5695->supplies);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ov5695_probe(struct i2c_client *client,
|
static int ov5695_probe(struct i2c_client *client)
|
||||||
const struct i2c_device_id *id)
|
|
||||||
{
|
{
|
||||||
struct device *dev = &client->dev;
|
struct device *dev = &client->dev;
|
||||||
struct ov5695 *ov5695;
|
struct ov5695 *ov5695;
|
||||||
|
@ -1393,7 +1392,7 @@ static struct i2c_driver ov5695_i2c_driver = {
|
||||||
.pm = &ov5695_pm_ops,
|
.pm = &ov5695_pm_ops,
|
||||||
.of_match_table = of_match_ptr(ov5695_of_match),
|
.of_match_table = of_match_ptr(ov5695_of_match),
|
||||||
},
|
},
|
||||||
.probe = &ov5695_probe,
|
.probe_new = &ov5695_probe,
|
||||||
.remove = &ov5695_remove,
|
.remove = &ov5695_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue