drivers: fimc-is2: silence enum-conversion warnings
authorMichael Benedict <michaelbt@live.com>
Mon, 3 Jun 2019 11:24:45 +0000 (21:24 +1000)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 15:08:54 +0000 (01:08 +1000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-framemgr.h
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.c
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.h

index dd37cb2760a53716b2696865c90aeff464af02ca..6b1a22ea7bbee6d7a9a670df6e006afb04728ae2 100644 (file)
@@ -129,13 +129,11 @@ enum fimc_is_frame_state {
        FS_INVALID
 };
 
-enum fimc_is_hw_frame_state {
-       FS_HW_FREE,
-       FS_HW_REQUEST,
-       FS_HW_CONFIGURE,
-       FS_HW_WAIT_DONE,
-       FS_HW_INVALID
-};
+#define FS_HW_FREE     FS_FREE
+#define FS_HW_REQUEST  FS_REQUEST
+#define FS_HW_CONFIGURE        FS_PROCESS
+#define FS_HW_WAIT_DONE        FS_COMPLETE
+#define FS_HW_INVALID  FS_INVALID
 
 #define NR_FRAME_STATE FS_INVALID
 
index 7ad970a8a382d988c37ddca5a2be00903955322b..e7d0b022168b5c01aacb45915ac1a56a5dc1690a 100644 (file)
@@ -318,7 +318,7 @@ void print_all_hw_frame_count(struct fimc_is_hardware *hardware)
 }
 
 void fimc_is_hardware_flush_frame(struct fimc_is_hw_ip *hw_ip,
-       enum fimc_is_hw_frame_state state,
+       enum fimc_is_frame_state state,
        enum ShotErrorType done_type)
 {
        int ret = 0;
@@ -1729,7 +1729,7 @@ int fimc_is_hardware_process_start(struct fimc_is_hardware *hardware, u32 instan
 
 static int flush_frames_in_instance(struct fimc_is_hw_ip *hw_ip,
        struct fimc_is_framemgr *framemgr, u32 instance,
-       enum fimc_is_hw_frame_state state, enum ShotErrorType done_type)
+       enum fimc_is_frame_state state, enum ShotErrorType done_type)
 {
        int retry = 150;
        struct fimc_is_frame *frame;
@@ -1793,7 +1793,7 @@ void fimc_is_hardware_force_stop(struct fimc_is_hardware *hardware,
        int ret = 0;
        struct fimc_is_framemgr *framemgr;
        struct fimc_is_framemgr *framemgr_late;
-       enum fimc_is_hw_frame_state state;
+       enum fimc_is_frame_state state;
 
        BUG_ON(!hw_ip);
 
index 5dabcdb963d6c8d93763bf47fbf5c7fad0128028..5780f2ca7b2d5efd83e4a59768e247fb7093f711 100644 (file)
@@ -378,7 +378,7 @@ struct fimc_is_hardware {
 
 u32 get_hw_id_from_group(u32 group_id);
 void fimc_is_hardware_flush_frame(struct fimc_is_hw_ip *hw_ip,
-       enum fimc_is_hw_frame_state state,
+       enum fimc_is_frame_state state,
        enum ShotErrorType done_type);
 int fimc_is_hardware_probe(struct fimc_is_hardware *hardware,
        struct fimc_is_interface *itf, struct fimc_is_interface_ischain *itfc);