media: atomisp: Remove unused ISP state control functions
Subsystems (4)
PATCH 1/1 media: atomisp: Remove unused ISP state control functions
From: Abhishek Chaulagain <[email protected]>
isp_is_ready(), isp_is_sleeping(), isp_start() and isp_wake() are defined in isp.c and declared in isp_public.h, but have no callers anywhere in the tree. Remove the four unused functions along with their prototypes.
isp_wake() was the only user of udelay() in this file, so drop the now-unused linux/delay.h include as well.
--- .../pci/hive_isp_css_common/host/isp.c | 32 ------------------- .../hive_isp_css_include/host/isp_public.h | 8 ----- 2 files changed, 40 deletions(-)
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/isp.c +0 -32
@@ -4,8 +4,6 @@* Copyright (c) 2010-2015, Intel Corporation. */ -#include <linux/delay.h> -#include <system_global.h> #include "isp.h"
@@ -29,33 +27,3 @@ void cnd_isp_irq_enable( }return ; } - -/* ISP functions to control the ISP state from the host, even in crun. */ - -/* Inspect readiness of an ISP indexed by ID */ -unsigned int isp_is_ready (isp_ID_t ID ) -{ -assert (ID <N_ISP_ID ); -return isp_ctrl_getbit (ID ,ISP_SC_REG ,ISP_IDLE_BIT ); -} - -/* Inspect sleeping of an ISP indexed by ID */ -unsigned int isp_is_sleeping (isp_ID_t ID ) -{ -assert (ID <N_ISP_ID ); -return isp_ctrl_getbit (ID ,ISP_SC_REG ,ISP_SLEEPING_BIT ); -} - -/* To be called by the host immediately before starting ISP ID. */ -void isp_start (isp_ID_t ID ) -{ -assert (ID <N_ISP_ID ); -} - -/* Wake up ISP ID. */ -void isp_wake (isp_ID_t ID ) -{ -assert (ID <N_ISP_ID ); -isp_ctrl_setbit (ID ,ISP_SC_REG ,ISP_START_BIT ); -udelay (1 ); -}
drivers/staging/media/atomisp/pci/hive_isp_css_include/host/isp_public.h +0 -8
@@ -153,12 +153,4 @@ STORAGE_CLASS_ISP_H uint32_t isp_2w_cat_1w(const u16 x0, const uint16_t x1); -unsigned int isp_is_ready (isp_ID_t ID ); - -unsigned int isp_is_sleeping (isp_ID_t ID ); - -void isp_start (isp_ID_t ID ); - -void isp_wake (isp_ID_t ID ); -#endif /* __ISP_PUBLIC_H_INCLUDED__ */
Signature · 1 line
2.43.0
Quoted 8 lines · Avishek Chaulagain
isp_is_ready(),isp_is_sleeping(),isp_start()andisp_wake()are defined inisp.cand declared inisp_public.h, but have no callers anywhere in the tree. Remove the four unused functions along with their prototypes.
isp_wake()was the only user ofudelay()in this file, so drop the now-unusedlinux/delay.hinclude as well.
As long as it compiles,
Signature · 2 lines
With Best Regards, Andy Shevchenko