Skip to content

Commit fcd65d6

Browse files
krzklinusw
authored andcommitted
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: 701016c ("pinctrl: st: Add pinctrl and pinconf support.") Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 3153456 commit fcd65d6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/pinctrl/pinctrl-st.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,6 @@ static struct st_pio_control *st_get_pio_control(
374374
}
375375

376376
/* Low level functions.. */
377-
static inline int st_gpio_bank(int gpio)
378-
{
379-
return gpio/ST_GPIO_PINS_PER_BANK;
380-
}
381-
382377
static inline int st_gpio_pin(int gpio)
383378
{
384379
return gpio%ST_GPIO_PINS_PER_BANK;

0 commit comments

Comments
 (0)