Skip to content

Commit 79e070c

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/media/i2c/ov5695.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,8 +1267,7 @@ static int ov5695_configure_regulators(struct ov5695 *ov5695)
12671267
ov5695->supplies);
12681268
}
12691269

1270-
static int ov5695_probe(struct i2c_client *client,
1271-
const struct i2c_device_id *id)
1270+
static int ov5695_probe(struct i2c_client *client)
12721271
{
12731272
struct device *dev = &client->dev;
12741273
struct ov5695 *ov5695;
@@ -1393,7 +1392,7 @@ static struct i2c_driver ov5695_i2c_driver = {
13931392
.pm = &ov5695_pm_ops,
13941393
.of_match_table = of_match_ptr(ov5695_of_match),
13951394
},
1396-
.probe = &ov5695_probe,
1395+
.probe_new = &ov5695_probe,
13971396
.remove = &ov5695_remove,
13981397
};
13991398

0 commit comments

Comments
 (0)