pwm: mediatek: remove unused function
Subsystems (2)
PATCH 1/1 pwm: mediatek: remove unused function
Fix the following clang warning:
drivers/pwm/pwm-mediatek.c:110:19: warning: unused function 'pwm_mediatek_readl' [-Wunused-function].
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/pwm/pwm-mediatek.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/pwm/pwm-mediatek.c +0 -6
@@ -107,12 +107,6 @@ static void pwm_mediatek_clk_disable(struct pwm_chip *chip,clk_disable_unprepare (pc->clk_top); } -static inline u32 pwm_mediatek_readl (struct pwm_mediatek_chip *chip, -unsigned int num,unsigned int offset) -{ -return readl (chip->regs + pwm_mediatek_reg_offset[num] + offset); -} -static inline void pwm_mediatek_writel (struct pwm_mediatek_chip *chip,unsigned int num,unsigned int offset,u32 value)
Signature · 1 line
1.8.3.1
Quoted 7 lines · Jiapeng Chong
Fix the following clang warning:
drivers/pwm/pwm-mediatek.c:110:19: warning: unused function 'pwm_mediatek_readl' [-Wunused-function].Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Looks right, even though I would prefer to see a patch implementing .get_state instead (which probably would make use of this function).
Acked-by Uwe Kleine-König <[email protected]>
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Thierry Reding
AppliedQuoted 10 lines · Jiapeng Chong
Fix the following clang warning:
drivers/pwm/pwm-mediatek.c:110:19: warning: unused function 'pwm_mediatek_readl' [-Wunused-function].Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/pwm/pwm-mediatek.c | 6 ------ 1 file changed, 6 deletions(-)
Applied, thanks.
Thierry