Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: st: Drop unused st_gpio_bank() function

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>
Link: https://lore.kernel.org/20250528092201.52132-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Linus Walleij
fcd65d65 31534561

-5
-5
drivers/pinctrl/pinctrl-st.c
··· 374 374 } 375 375 376 376 /* Low level functions.. */ 377 - static inline int st_gpio_bank(int gpio) 378 - { 379 - return gpio/ST_GPIO_PINS_PER_BANK; 380 - } 381 - 382 377 static inline int st_gpio_pin(int gpio) 383 378 { 384 379 return gpio%ST_GPIO_PINS_PER_BANK;