Commit 01f4eab2 authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab

media: atomisp: Don't use ifdef on IS_ISP2401

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.comSigned-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 68a99f6a
...@@ -963,7 +963,7 @@ int atomisp_css_irq_translate(struct atomisp_device *isp, ...@@ -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, void atomisp_css_rx_get_irq_info(enum mipi_port_id port,
unsigned int *infos) unsigned int *infos)
{ {
#ifndef IS_ISP2401 #ifndef ISP2401
ia_css_isys_rx_get_irq_info(port, infos); ia_css_isys_rx_get_irq_info(port, infos);
#else #else
*infos = 0; *infos = 0;
...@@ -973,7 +973,7 @@ void atomisp_css_rx_get_irq_info(enum mipi_port_id port, ...@@ -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, void atomisp_css_rx_clear_irq_info(enum mipi_port_id port,
unsigned int infos) unsigned int infos)
{ {
#ifndef IS_ISP2401 #ifndef ISP2401
ia_css_isys_rx_clear_irq_info(port, infos); ia_css_isys_rx_clear_irq_info(port, infos);
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment