Re: [PATCH] gpio: Move gpiochip_lock/unlock_as_irq to gpio/driver.h

2019-08-23 Thread Linus Walleij
On Thu, Aug 22, 2019 at 5:19 AM YueHaibing wrote: > If CONFIG_GPIOLIB is not, gpiochip_lock/unlock_as_irq will > conflict as this: > > In file included from sound/soc/codecs/wm5100.c:18:0: > ./include/linux/gpio.h:224:19: error: static declaration of > gpiochip_lock_as_irq follows non-static

[PATCH] gpio: Move gpiochip_lock/unlock_as_irq to gpio/driver.h

2019-08-21 Thread YueHaibing
If CONFIG_GPIOLIB is not, gpiochip_lock/unlock_as_irq will conflict as this: In file included from sound/soc/codecs/wm5100.c:18:0: ./include/linux/gpio.h:224:19: error: static declaration of gpiochip_lock_as_irq follows non-static declaration static inline int gpiochip_lock_as_irq(struct