diff options
| author | Arnd Bergmann <[email protected]> | 2022-12-15 16:38:10 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2022-12-29 01:07:25 +0000 |
| commit | 5626af8fc4322a972b59c7b1a6760767f7b58d4f (patch) | |
| tree | 52144cb3f029007fcca806857efadabf0a896278 /drivers/fpga/fpga-bridge.c | |
| parent | Linux 6.2-rc1 (diff) | |
| download | kernel-5626af8fc4322a972b59c7b1a6760767f7b58d4f.tar.gz kernel-5626af8fc4322a972b59c7b1a6760767f7b58d4f.zip | |
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: aa74c44be19c ("pinctrl: Add driver for Sunplus SP7021")
Signed-off-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
