media: atomisp: ov2680: Drop unused res member from struct ov2680_device
authorHans de Goede <hdegoede@redhat.com>
Sun, 8 Jan 2023 15:22:42 +0000 (16:22 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:24:34 +0000 (08:24 +0100)
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>
drivers/staging/media/atomisp/i2c/atomisp-ov2680.c
drivers/staging/media/atomisp/i2c/ov2680.h

index 36f9440..274aceb 100644 (file)
@@ -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,
index 35c8ea5..c601d30 100644 (file)
@@ -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;