Skip to content

Commit a7400a4

Browse files
Tom RixBartosz Golaszewski
authored andcommitted
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 <trix@redhat.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 0381003 commit a7400a4

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

drivers/gpio/gpio-pxa.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,6 @@ static inline struct pxa_gpio_bank *gpio_to_pxabank(struct gpio_chip *c,
171171
return chip_to_pxachip(c)->banks + gpio / 32;
172172
}
173173

174-
static inline int gpio_is_pxa_type(int type)
175-
{
176-
return (type & MMP_GPIO) == 0;
177-
}
178-
179174
static inline int gpio_is_mmp_type(int type)
180175
{
181176
return (type & MMP_GPIO) != 0;

0 commit comments

Comments
 (0)