[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1618475753-102123-1-git-send-email-jiapeng.chong@linux.alibaba.com>
Date: Thu, 15 Apr 2021 16:35:53 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: thierry.reding@...il.com
Cc: u.kleine-koenig@...gutronix.de, lee.jones@...aro.org,
matthias.bgg@...il.com, linux-pwm@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Subject: [PATCH] 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 <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
drivers/pwm/pwm-mediatek.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c
index fcfc3b1..cae0f48 100644
--- a/drivers/pwm/pwm-mediatek.c
+++ b/drivers/pwm/pwm-mediatek.c
@@ -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)
--
1.8.3.1
Powered by blists - more mailing lists