Commit 7ed0c6c0 authored by Kate Hsuan's avatar Kate Hsuan Committed by Mauro Carvalho Chehab

media: atomisp: css_2401_system: Remove #ifdef ISP2401 to make the driver generic

Removed #if defined(2401) to make the driver generic.

Link: https://lore.kernel.org/r/20230713100231.308923-5-hpa@redhat.comSigned-off-by: default avatarKate Hsuan <hpa@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 2aea82b0
......@@ -18,8 +18,6 @@
#include <type_support.h>
#if defined(ISP2401)
typedef struct isys_irqc_state_s isys_irqc_state_t;
struct isys_irqc_state_s {
......@@ -31,6 +29,5 @@ struct isys_irqc_state_s {
/*hrt_data clear; */ /* write-only register */
};
#endif /* defined(ISP2401) */
#endif /* __ISYS_IRQ_LOCAL_H__ */
......@@ -19,7 +19,6 @@
#include "isys_irq_global.h"
#include "isys_irq_local.h"
#if defined(ISP2401)
/* -------------------------------------------------------+
| Native command interface (NCI) |
......@@ -102,6 +101,5 @@ hrt_data isys_irqc_reg_load(
/* end of DLI */
#endif /* defined(ISP2401) */
#endif /* __ISYS_IRQ_PRIVATE_H__ */
......@@ -16,7 +16,6 @@
#ifndef __ISYS_IRQ_GLOBAL_H__
#define __ISYS_IRQ_GLOBAL_H__
#if defined(ISP2401)
/* Register offset/index from base location */
#define ISYS_IRQ_EDGE_REG_IDX (0)
......@@ -31,6 +30,5 @@
#define ISYS_IRQ_CLEAR_REG_VALUE (0xFFFF)
#define ISYS_IRQ_ENABLE_REG_VALUE (0xFFFF)
#endif /* defined(ISP2401) */
#endif /* __ISYS_IRQ_GLOBAL_H__ */
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