media: atomisp: Don't use ifdef on IS_ISP2401
authorHans de Goede <hdegoede@redhat.com>
Sun, 16 Jan 2022 21:51:56 +0000 (22:51 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 8 Feb 2022 05:28:37 +0000 (06:28 +0100)
IS_ISP2401 is a function like macro which is always defined, so it must
not be used together with #ifdef. #ifdef checks should check for
"ISP2401", not "IS_ISP2401".

Link: https://lore.kernel.org/linux-media/20220116215204.307649-2-hdegoede@redhat.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_css20.c

index 1173be0..781a11c 100644 (file)
@@ -963,7 +963,7 @@ int atomisp_css_irq_translate(struct atomisp_device *isp,
 void atomisp_css_rx_get_irq_info(enum mipi_port_id port,
                                 unsigned int *infos)
 {
-#ifndef IS_ISP2401
+#ifndef ISP2401
        ia_css_isys_rx_get_irq_info(port, infos);
 #else
        *infos = 0;
@@ -973,7 +973,7 @@ void atomisp_css_rx_get_irq_info(enum mipi_port_id port,
 void atomisp_css_rx_clear_irq_info(enum mipi_port_id port,
                                   unsigned int infos)
 {
-#ifndef IS_ISP2401
+#ifndef ISP2401
        ia_css_isys_rx_clear_irq_info(port, infos);
 #endif
 }