Skip to content

Commit 7eafbd4

Browse files
Uwe Kleine-Königwsakernel
authored andcommitted
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 <[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]>
1 parent 79e070c commit 7eafbd4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/media/i2c/ov2685.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,7 @@ static int ov2685_configure_regulators(struct ov2685 *ov2685)
707707
ov2685->supplies);
708708
}
709709

710-
static int ov2685_probe(struct i2c_client *client,
711-
const struct i2c_device_id *id)
710+
static int ov2685_probe(struct i2c_client *client)
712711
{
713712
struct device *dev = &client->dev;
714713
struct ov2685 *ov2685;
@@ -830,7 +829,7 @@ static struct i2c_driver ov2685_i2c_driver = {
830829
.pm = &ov2685_pm_ops,
831830
.of_match_table = of_match_ptr(ov2685_of_match),
832831
},
833-
.probe = &ov2685_probe,
832+
.probe_new = &ov2685_probe,
834833
.remove = &ov2685_remove,
835834
};
836835

0 commit comments

Comments
 (0)