Commit 5626af8
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: aa74c44 ("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]>1 parent 1b929c0 commit 5626af8
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
503 | 502 | | |
504 | 503 | | |
505 | 504 | | |
| |||
521 | 520 | | |
522 | 521 | | |
523 | 522 | | |
524 | | - | |
525 | 523 | | |
526 | 524 | | |
527 | 525 | | |
| |||
550 | 548 | | |
551 | 549 | | |
552 | 550 | | |
553 | | - | |
554 | | - | |
555 | | - | |
| 551 | + | |
| 552 | + | |
556 | 553 | | |
557 | 554 | | |
558 | 555 | | |
| |||
0 commit comments