diff options
| author | Tom Rix <[email protected]> | 2023-03-19 14:36:40 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2023-03-22 16:46:12 +0000 |
| commit | a7400a48160dc6a00ff93c40ba25d04a8e49f1f4 (patch) | |
| tree | a04e90e50f272cc9be2b30f39def77a548695e26 /drivers/gpio/gpio-pxa.c | |
| parent | gpio: fxl6408: add I2C GPIO expander driver (diff) | |
| download | kernel-a7400a48160dc6a00ff93c40ba25d04a8e49f1f4.tar.gz kernel-a7400a48160dc6a00ff93c40ba25d04a8e49f1f4.zip | |
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]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-pxa.c')
| -rw-r--r-- | drivers/gpio/gpio-pxa.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index 1198ab0305d0..a1630ed4b741 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; |
