diff options
| author | Samuel Holland <[email protected]> | 2021-09-12 10:28:36 -0500 |
|---|---|---|
| committer | Andre Przywara <[email protected]> | 2021-10-11 10:46:44 +0100 |
| commit | 14c8c631e986d350ce468ae5d627f547e5a4e1aa (patch) | |
| tree | 4b51e6904f9b2997b05652b99af2db56b5367011 /drivers | |
| parent | dda9fa734f813c0d0c29aa03bfe200950b40cfea (diff) | |
gpio: sunxi: Remove the sunxi_name_to_gpio_bank function
The only caller of this function was the MMC pinmux code, which used it
to parse a string given from a Kconfig symbol. As the Kconfig symbol has
been converted to a Boolean, this function is no longer needed.
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpio/sunxi_gpio.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c index 24cb604e3e3..c5d73d0a049 100644 --- a/drivers/gpio/sunxi_gpio.c +++ b/drivers/gpio/sunxi_gpio.c @@ -118,20 +118,6 @@ int sunxi_name_to_gpio(const char *name) } #endif /* DM_GPIO */ -int sunxi_name_to_gpio_bank(const char *name) -{ - int group = 0; - - if (*name == 'P' || *name == 'p') - name++; - if (*name >= 'A') { - group = *name - (*name > 'a' ? 'a' : 'A'); - return group; - } - - return -1; -} - #if CONFIG_IS_ENABLED(DM_GPIO) /* TODO([email protected]): Remove this function and use device tree */ int sunxi_name_to_gpio(const char *name) |
