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>
/* 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;
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,
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;