* [PATCH] pinctrl: st: Drop unused st_gpio_bank() function
@ 2025-05-28 9:22 Krzysztof Kozlowski
2025-06-05 13:15 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-28 9:22 UTC (permalink / raw)
To: Patrice Chotard, Linus Walleij, Srinivas Kandagatla, Mark Brown,
linux-arm-kernel, linux-gpio, linux-kernel
Cc: Krzysztof Kozlowski
Static inline st_gpio_bank() function is not referenced:
pinctrl-st.c:377:19: error: unused function 'st_gpio_bank' [-Werror,-Wunused-function]
Fixes: 701016c0cba5 ("pinctrl: st: Add pinctrl and pinconf support.")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/pinctrl/pinctrl-st.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c
index fe2d52e434db..8a2ef74862d3 100644
--- a/drivers/pinctrl/pinctrl-st.c
+++ b/drivers/pinctrl/pinctrl-st.c
@@ -374,11 +374,6 @@ static struct st_pio_control *st_get_pio_control(
}
/* Low level functions.. */
-static inline int st_gpio_bank(int gpio)
-{
- return gpio/ST_GPIO_PINS_PER_BANK;
-}
-
static inline int st_gpio_pin(int gpio)
{
return gpio%ST_GPIO_PINS_PER_BANK;
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pinctrl: st: Drop unused st_gpio_bank() function
2025-05-28 9:22 [PATCH] pinctrl: st: Drop unused st_gpio_bank() function Krzysztof Kozlowski
@ 2025-06-05 13:15 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2025-06-05 13:15 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Patrice Chotard, Srinivas Kandagatla, Mark Brown,
linux-arm-kernel, linux-gpio, linux-kernel
On Wed, May 28, 2025 at 11:22 AM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> Static inline st_gpio_bank() function is not referenced:
>
> pinctrl-st.c:377:19: error: unused function 'st_gpio_bank' [-Werror,-Wunused-function]
>
> Fixes: 701016c0cba5 ("pinctrl: st: Add pinctrl and pinconf support.")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Patch applied for fixes!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-05 13:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-28 9:22 [PATCH] pinctrl: st: Drop unused st_gpio_bank() function Krzysztof Kozlowski
2025-06-05 13:15 ` Linus Walleij
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).