media: atomisp: ov2680: Drop unused res member from struct ov2680_device
The res member of struct ov2680_device isn't read anywhere anymore, drop it. Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
3406639ee2
commit
10704b452a
|
@ -541,10 +541,6 @@ static int ov2680_set_fmt(struct v4l2_subdev *sd,
|
|||
|
||||
/* Restore value of all ctrls */
|
||||
ret = __v4l2_ctrl_handler_setup(&dev->ctrls.handler);
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
|
||||
dev->res = res;
|
||||
err:
|
||||
mutex_unlock(&dev->input_lock);
|
||||
return ret;
|
||||
|
@ -832,7 +828,6 @@ static int ov2680_probe(struct i2c_client *client)
|
|||
mutex_init(&dev->input_lock);
|
||||
|
||||
dev->client = client;
|
||||
dev->res = &ov2680_res_preview[0];
|
||||
v4l2_i2c_subdev_init(&dev->sd, client, &ov2680_ops);
|
||||
|
||||
pdata = gmin_camera_platform_data(&dev->sd,
|
||||
|
|
|
@ -174,7 +174,6 @@ struct ov2680_device {
|
|||
struct media_pad pad;
|
||||
struct mutex input_lock;
|
||||
struct i2c_client *client;
|
||||
struct ov2680_resolution *res;
|
||||
struct camera_sensor_platform_data *platform_data;
|
||||
bool power_on;
|
||||
bool is_streaming;
|
||||
|
|
Loading…
Reference in New Issue