media: atomisp: Remove unused mipi_frame_size field from atomisp_[sub_]device
authorHans de Goede <hdegoede@redhat.com>
Wed, 10 May 2023 20:21:51 +0000 (21:21 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 13:34:01 +0000 (14:34 +0100)
Both the atomisp_device and the atomisp_sub_device structs have
an unused mipi_frame_size field, remove the field from both.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_fops.c
drivers/staging/media/atomisp/pci/atomisp_internal.h
drivers/staging/media/atomisp/pci/atomisp_subdev.h

index 39eba99..37d8c8a 100644 (file)
@@ -448,7 +448,6 @@ static void atomisp_dev_init_struct(struct atomisp_device *isp)
        unsigned int i;
 
        isp->isp_fatal_error = false;
-       isp->mipi_frame_size = 0;
 
        for (i = 0; i < isp->input_cnt; i++)
                isp->inputs[i].asd = NULL;
@@ -478,7 +477,6 @@ static void atomisp_subdev_init_struct(struct atomisp_sub_device *asd)
        /* Add for channel */
        asd->input_curr = 0;
 
-       asd->mipi_frame_size = 0;
        asd->copy_mode = false;
 
        asd->stream_prepared = false;
index e531f0c..cec0ac9 100644 (file)
@@ -211,7 +211,6 @@ struct atomisp_device {
 
        spinlock_t lock; /* Protects asd.streaming */
 
-       unsigned int mipi_frame_size;
        const struct atomisp_dfs_config *dfs;
        unsigned int hpll_freq;
        unsigned int running_freq;
index 28afcdd..a702890 100644 (file)
@@ -304,8 +304,6 @@ struct atomisp_sub_device {
 
        unsigned int latest_preview_exp_id; /* CSS ZSL/SDV raw buffer id */
 
-       unsigned int mipi_frame_size;
-
        bool copy_mode; /* CSI2+ use copy mode */
 
        int raw_buffer_bitmap[ATOMISP_MAX_EXP_ID / 32 +