diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-02-26 23:26:51 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-03-09 21:59:04 +0100 |
commit | 7eafbd40901c2b6f884c022c10bec5c8ec5c6a24 (patch) | |
tree | 51625550bda221b2d6069399b2e5298437e0e820 /drivers | |
parent | media: i2c: ov5695: convert to i2c's .probe_new() (diff) | |
download | linux-7eafbd40901c2b6f884c022c10bec5c8ec5c6a24.tar.xz linux-7eafbd40901c2b6f884c022c10bec5c8ec5c6a24.zip |
media: i2c: ov2685: 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/20221121102838.16448-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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/i2c/ov2685.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/i2c/ov2685.c b/drivers/media/i2c/ov2685.c index a3b524f15d89..1c80b121e7d6 100644 --- a/drivers/media/i2c/ov2685.c +++ b/drivers/media/i2c/ov2685.c @@ -707,8 +707,7 @@ static int ov2685_configure_regulators(struct ov2685 *ov2685) ov2685->supplies); } -static int ov2685_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ov2685_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct ov2685 *ov2685; @@ -830,7 +829,7 @@ static struct i2c_driver ov2685_i2c_driver = { .pm = &ov2685_pm_ops, .of_match_table = of_match_ptr(ov2685_of_match), }, - .probe = &ov2685_probe, + .probe_new = &ov2685_probe, .remove = &ov2685_remove, }; |