media: atomisp: Remove aliases for MIPI_FORMAT_2400_CUSTOM0
authorHans de Goede <hdegoede@redhat.com>
Sat, 15 Jul 2023 17:09:05 +0000 (19:09 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 27 Sep 2023 07:40:03 +0000 (09:40 +0200)
isp2400_input_system_local.h defines 2 aliases for MIPI_FORMAT_2400_CUSTOM0
MIPI_FORMAT_JPEG, which is entirely unused and MIPI_FORMAT_BINARY_8 which
is used once in ia_css_isys_2400_set_fmt_type().

Drop these aliases and directly use MIPI_FORMAT_2400_CUSTOM0 in
ia_css_isys_2400_set_fmt_type().

Link: https://lore.kernel.org/r/20230715170906.3627-2-hdegoede@redhat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Kate Hsuan <hpa@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/isp2400_input_system_local.h
drivers/staging/media/atomisp/pci/runtime/isys/src/rx.c

index e7b84fdbb4e0359464e44b1a0ecb81d28c60c6da..6319d6449f201f117fc3d1512cfa6da2c7013f74 100644 (file)
@@ -200,8 +200,6 @@ typedef enum {
        N_MIPI_FORMAT_2400,
 } mipi_format_2400_t;
 
-#define MIPI_FORMAT_JPEG       MIPI_FORMAT_2400_CUSTOM0
-#define MIPI_FORMAT_BINARY_8   MIPI_FORMAT_2400_CUSTOM0
 #define N_MIPI_FORMAT_CUSTOM   8
 
 /* The number of stores for compressed format types */
index c8316e0965d06cda044de6fc109b71e4e264d622..deb4130f710cd56fc8fbbc4e9a3f5164020bde67 100644 (file)
@@ -271,7 +271,7 @@ static int ia_css_isys_2400_set_fmt_type(enum atomisp_input_format input_format,
                *fmt_type = MIPI_FORMAT_2400_RAW16;
                break;
        case ATOMISP_INPUT_FORMAT_BINARY_8:
-               *fmt_type = MIPI_FORMAT_BINARY_8;
+               *fmt_type = MIPI_FORMAT_2400_CUSTOM0;
                break;
        case ATOMISP_INPUT_FORMAT_YUV420_16:
        case ATOMISP_INPUT_FORMAT_YUV422_16: