WSL2-Linux-Kernel/drivers/pinctrl/sunplus
Arnd Bergmann 5626af8fc4 pinctrl: sp7021: fix unused function warning
sppctl_gpio_inv_get is only used from the debugfs code inside
of an #ifdef, so we get a warning without that:

drivers/pinctrl/sunplus/sppctl.c:393:12: error: 'sppctl_gpio_inv_get' defined but not used [-Werror=unused-function]
  393 | static int sppctl_gpio_inv_get(struct gpio_chip *chip, unsigned int offset)
      |            ^~~~~~~~~~~~~~~~~~~

Replace the #ifdef with an IS_ENABLED() check that avoids the warning.

Fixes: aa74c44be1 ("pinctrl: Add driver for Sunplus SP7021")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20221215163822.542622-1-arnd@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2022-12-29 02:07:25 +01:00
..
Kconfig
Makefile
sppctl.c pinctrl: sp7021: fix unused function warning 2022-12-29 02:07:25 +01:00
sppctl.h
sppctl_sp7021.c pinctrl: Fix an error in pin-function table of SP7021 2022-04-21 16:28:59 +02:00