Skip to content

Commit

Permalink
media: i2c: ov2685: convert to i2c's .probe_new()
Browse files Browse the repository at this point in the history
The probe function doesn't make use of the i2c_device_id * parameter so
it can be trivially converted.

Reviewed-by: Kieran Bingham <[email protected]>
Acked-by: Hans Verkuil <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
  • Loading branch information
Uwe Kleine-König authored and wsakernel committed Mar 9, 2023
1 parent 79e070c commit 7eafbd4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/media/i2c/ov2685.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
};

Expand Down

0 comments on commit 7eafbd4

Please sign in to comment.