media: atomisp: Remove empty atomisp_css_set_cont_prev_start_time() function
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 Aug 2022 19:15:52 +0000 (21:15 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 07:55:48 +0000 (09:55 +0200)
atomisp_css_set_cont_prev_start_time() is a no-op, remove it.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.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_compat.h
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
drivers/staging/media/atomisp/pci/atomisp_internal.h
drivers/staging/media/atomisp/pci/atomisp_ioctl.c

index 54c57bb..af6ab84 100644 (file)
@@ -434,9 +434,6 @@ void atomisp_css_get_morph_table(struct atomisp_sub_device *asd,
 
 void atomisp_css_morph_table_free(struct ia_css_morph_table *table);
 
-void atomisp_css_set_cont_prev_start_time(struct atomisp_device *isp,
-       unsigned int overlap);
-
 int atomisp_css_get_dis_stat(struct atomisp_sub_device *asd,
                             struct atomisp_dis_statistics *stats);
 
index ec47d84..cda0b5e 100644 (file)
@@ -3763,14 +3763,6 @@ void atomisp_css_morph_table_free(struct ia_css_morph_table *table)
        ia_css_morph_table_free(table);
 }
 
-void atomisp_css_set_cont_prev_start_time(struct atomisp_device *isp,
-       unsigned int overlap)
-{
-       /* CSS 2.0 doesn't support this API. */
-       dev_dbg(isp->dev, "set cont prev start time is not supported.\n");
-       return;
-}
-
 static struct atomisp_sub_device *__get_atomisp_subdev(
     struct ia_css_pipe *css_pipe,
     struct atomisp_device *isp,
index 1d2326a..e299304 100644 (file)
 #define ATOMISP_DELAYED_INIT_QUEUED    1
 #define ATOMISP_DELAYED_INIT_DONE      2
 
-#define ATOMISP_CALC_CSS_PREV_OVERLAP(lines) \
-       ((lines) * 38 / 100 & 0xfffffe)
-
 /*
  * Define how fast CPU should be able to serve ISP interrupts.
  * The bigger the value, the higher risk that the ISP is not
index bdbb9db..caeb38e 100644 (file)
@@ -1934,8 +1934,6 @@ start_delay_wq:
                reinit_completion(&asd->init_done);
                asd->delayed_init = ATOMISP_DELAYED_INIT_QUEUED;
                queue_work(asd->delayed_init_workq, &asd->delayed_init_work);
-               atomisp_css_set_cont_prev_start_time(isp,
-                                                    ATOMISP_CALC_CSS_PREV_OVERLAP(sink->height));
        } else {
                asd->delayed_init = ATOMISP_DELAYED_INIT_NOT_QUEUED;
        }