gpio: pxa: remove unused gpio_is_pxa_type function
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/gpio/gpio-pxa.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpio/gpio-pxa.c +0 -5
@@ -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 ;
Signature · 1 line
2.27.0
Quoted 8 lines · Tom Rix
clang with W=1 reports
drivers/gpio/gpio-pxa.c:174:19: error: unused function
'gpio_is_pxa_type' [-Werror,-Wunused-function]
static inline intgpio_is_pxa_type(int type)^This function is not used, so remove it.
Signed-off-by Tom Rix <[email protected]>
Reviewed-by Linus Walleij <[email protected]>
Yours,
Linus Walleij
Bartosz Golaszewski
AppliedQuoted 30 lines · Tom Rix
clang with W=1 reports
drivers/gpio/gpio-pxa.c:174:19: error: unused function
'gpio_is_pxa_type' [-Werror,-Wunused-function]
static inline intgpio_is_pxa_type(int type)^This function is not used, so remove it.
Signed-off-by Tom Rix <[email protected]>--- drivers/gpio/gpio-pxa.c | 5 ----- 1 file changed, 5 deletions(-)drivers/gpio/gpio-pxa.c +0
-6@@ -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 ; --
Quoted 2 lines
2.27.0
Applied, thanks!
Bart