Commit d7ba9d38 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Hans Verkuil

media: i2c/s5k6aa: 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.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 3461898d
...@@ -1544,8 +1544,7 @@ static int s5k6aa_configure_gpios(struct s5k6aa *s5k6aa, ...@@ -1544,8 +1544,7 @@ static int s5k6aa_configure_gpios(struct s5k6aa *s5k6aa,
return 0; return 0;
} }
static int s5k6aa_probe(struct i2c_client *client, static int s5k6aa_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
const struct s5k6aa_platform_data *pdata = client->dev.platform_data; const struct s5k6aa_platform_data *pdata = client->dev.platform_data;
struct v4l2_subdev *sd; struct v4l2_subdev *sd;
...@@ -1641,7 +1640,7 @@ static struct i2c_driver s5k6aa_i2c_driver = { ...@@ -1641,7 +1640,7 @@ static struct i2c_driver s5k6aa_i2c_driver = {
.driver = { .driver = {
.name = DRIVER_NAME .name = DRIVER_NAME
}, },
.probe = s5k6aa_probe, .probe_new = s5k6aa_probe,
.remove = s5k6aa_remove, .remove = s5k6aa_remove,
.id_table = s5k6aa_id, .id_table = s5k6aa_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment