Commit 2aea82b0 authored by Kate Hsuan's avatar Kate Hsuan Committed by Mauro Carvalho Chehab

media: atomisp: Included both input system headers

Included necessary input system header files (local, private, public
scopes) for both types of atomisp. There is also a conflict of
declaration issue so the unused input_system_state_s is removed.

Link: https://lore.kernel.org/r/20230713100231.308923-4-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 8fc67b18
...@@ -138,8 +138,5 @@ struct rx_cfg_s { ...@@ -138,8 +138,5 @@ struct rx_cfg_s {
bool is_two_ppc; bool is_two_ppc;
}; };
#ifdef ISP2401 #include "isp2401_input_system_local.h"
# include "isp2401_input_system_local.h" #include "isp2400_input_system_local.h"
#else
# include "isp2400_input_system_local.h"
#endif
...@@ -4,8 +4,5 @@ ...@@ -4,8 +4,5 @@
* (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org> * (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
*/ */
#ifdef ISP2401 #include "isp2401_input_system_private.h"
# include "isp2401_input_system_private.h" #include "isp2400_input_system_private.h"
#else
# include "isp2400_input_system_private.h"
#endif
...@@ -4,6 +4,4 @@ ...@@ -4,6 +4,4 @@
* (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org> * (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
*/ */
#ifndef ISP2401 #include "isp2400_input_system_public.h"
# include "isp2400_input_system_public.h"
#endif
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
* more details. * more details.
*/ */
#ifndef __INPUT_SYSTEM_LOCAL_H_INCLUDED__ #ifndef __INPUT_SYSTEM_2400_LOCAL_H_INCLUDED__
#define __INPUT_SYSTEM_LOCAL_H_INCLUDED__ #define __INPUT_SYSTEM_2400_LOCAL_H_INCLUDED__
#include "input_system_defs.h" /* HIVE_ISYS_GPREG_MULTICAST_A_IDX,... */ #include "input_system_defs.h" /* HIVE_ISYS_GPREG_MULTICAST_A_IDX,... */
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
* more details. * more details.
*/ */
#ifndef __INPUT_SYSTEM_PRIVATE_H_INCLUDED__ #ifndef __INPUT_SYSTEM_2400_PRIVATE_H_INCLUDED__
#define __INPUT_SYSTEM_PRIVATE_H_INCLUDED__ #define __INPUT_SYSTEM_2400_PRIVATE_H_INCLUDED__
#include "input_system_public.h" #include "input_system_public.h"
......
...@@ -13,13 +13,11 @@ ...@@ -13,13 +13,11 @@
* more details. * more details.
*/ */
#ifndef __INPUT_SYSTEM_PUBLIC_H_INCLUDED__ #ifndef __INPUT_SYSTEM_2400_PUBLIC_H_INCLUDED__
#define __INPUT_SYSTEM_PUBLIC_H_INCLUDED__ #define __INPUT_SYSTEM_2400_PUBLIC_H_INCLUDED__
#include <type_support.h> #include <type_support.h>
#ifdef ISP2401
#include "isys_public.h" #include "isys_public.h"
#else
typedef struct receiver_state_s receiver_state_t; typedef struct receiver_state_s receiver_state_t;
...@@ -359,6 +357,5 @@ input_system_err_t input_system_gpfifo_channel_cfg( ...@@ -359,6 +357,5 @@ input_system_err_t input_system_gpfifo_channel_cfg(
u32 nof_frames, u32 nof_frames,
target_cfg2400_t target target_cfg2400_t target
); );
#endif /* #ifdef ISP2401 */
#endif /* __INPUT_SYSTEM_PUBLIC_H_INCLUDED__ */ #endif /* __INPUT_SYSTEM_PUBLIC_H_INCLUDED__ */
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
* more details. * more details.
*/ */
#ifndef __INPUT_SYSTEM_LOCAL_H_INCLUDED__ #ifndef __INPUT_SYSTEM_2401_LOCAL_H_INCLUDED__
#define __INPUT_SYSTEM_LOCAL_H_INCLUDED__ #define __INPUT_SYSTEM_2401_LOCAL_H_INCLUDED__
#include "csi_rx.h" #include "csi_rx.h"
#include "pixelgen.h" #include "pixelgen.h"
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
* more details. * more details.
*/ */
#ifndef __INPUT_SYSTEM_PRIVATE_H_INCLUDED__ #ifndef __INPUT_SYSTEM_2401_PRIVATE_H_INCLUDED__
#define __INPUT_SYSTEM_PRIVATE_H_INCLUDED__ #define __INPUT_SYSTEM_2401_PRIVATE_H_INCLUDED__
#include "input_system_public.h" #include "input_system_public.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