From: Tom Rix Date: Sun, 19 Mar 2023 14:36:40 +0000 (-0400) Subject: gpio: pxa: remove unused gpio_is_pxa_type function X-Git-Tag: v6.6.7~3023^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7400a48160dc6a00ff93c40ba25d04a8e49f1f4;p=platform%2Fkernel%2Flinux-starfive.git gpio: pxa: remove unused gpio_is_pxa_type function clang with W=1 reports drivers/gpio/gpio-pxa.c:174:19: error: unused function 'gpio_is_pxa_type' [-Werror,-Wunused-function] static inline int gpio_is_pxa_type(int type) ^ This function is not used, so remove it. Signed-off-by: Tom Rix Reviewed-by: Linus Walleij Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index 1198ab0..a1630ed 100644 --- a/drivers/gpio/gpio-pxa.c +++ b/drivers/gpio/gpio-pxa.c @@ -171,11 +171,6 @@ static inline struct pxa_gpio_bank *gpio_to_pxabank(struct gpio_chip *c, return chip_to_pxachip(c)->banks + gpio / 32; } -static inline int gpio_is_pxa_type(int type) -{ - return (type & MMP_GPIO) == 0; -} - static inline int gpio_is_mmp_type(int type) { return (type & MMP_GPIO) != 0;