* [PATCH] pwm: mediatek: remove unused function
@ 2021-04-15 8:35 Jiapeng Chong
2021-04-15 9:06 ` Uwe Kleine-König
2021-04-23 16:47 ` Thierry Reding
0 siblings, 2 replies; 3+ messages in thread
From: Jiapeng Chong @ 2021-04-15 8:35 UTC (permalink / raw)
To: thierry.reding
Cc: u.kleine-koenig, lee.jones, matthias.bgg, linux-pwm,
linux-kernel, linux-arm-kernel, linux-mediatek, 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 <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] pwm: mediatek: remove unused function
2021-04-15 8:35 [PATCH] pwm: mediatek: remove unused function Jiapeng Chong
@ 2021-04-15 9:06 ` Uwe Kleine-König
2021-04-23 16:47 ` Thierry Reding
1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2021-04-15 9:06 UTC (permalink / raw)
To: Jiapeng Chong
Cc: thierry.reding, lee.jones, matthias.bgg, linux-pwm, linux-kernel,
linux-arm-kernel, linux-mediatek
[-- Attachment #1.1: Type: text/plain, Size: 720 bytes --]
On Thu, Apr 15, 2021 at 04:35:53PM +0800, Jiapeng Chong wrote:
> 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@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
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 <u.kleine-koenig@pengutronix.de>
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] pwm: mediatek: remove unused function
2021-04-15 8:35 [PATCH] pwm: mediatek: remove unused function Jiapeng Chong
2021-04-15 9:06 ` Uwe Kleine-König
@ 2021-04-23 16:47 ` Thierry Reding
1 sibling, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2021-04-23 16:47 UTC (permalink / raw)
To: Jiapeng Chong
Cc: u.kleine-koenig, lee.jones, matthias.bgg, linux-pwm,
linux-kernel, linux-arm-kernel, linux-mediatek
[-- Attachment #1.1: Type: text/plain, Size: 451 bytes --]
On Thu, Apr 15, 2021 at 04:35:53PM +0800, Jiapeng Chong wrote:
> 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@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
> drivers/pwm/pwm-mediatek.c | 6 ------
> 1 file changed, 6 deletions(-)
Applied, thanks.
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-23 16:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 8:35 [PATCH] pwm: mediatek: remove unused function Jiapeng Chong
2021-04-15 9:06 ` Uwe Kleine-König
2021-04-23 16:47 ` Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).