Commit 10704b45 authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab

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: default avatarAndy Shevchenko <andy@kernel.org>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 3406639e
......@@ -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;
......
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