Re: [PATCH] pinctrl: core: Add missing #ifdef CONFIG_GPIOLIB

2020-11-05 Thread Linus Walleij
On Wed, Oct 28, 2020 at 11:40 AM He Zhe wrote: > To fix the following build warnings when CONFIG_GPIOLIB=n. > > drivers/pinctrl/core.c:1607:20: warning: unused variable 'chip' > [-Wunused-variable] > 1608 | struct gpio_chip *chip; > |^~~~ > drivers/pinctrl/core.c:1606

Re: [PATCH] pinctrl: core: Add missing #ifdef CONFIG_GPIOLIB

2020-10-28 Thread Andy Shevchenko
On Wed, Oct 28, 2020 at 12:40 PM He Zhe wrote: > > To fix the following build warnings when CONFIG_GPIOLIB=n. > > drivers/pinctrl/core.c:1607:20: warning: unused variable 'chip' > [-Wunused-variable] > 1608 | struct gpio_chip *chip; > |^~~~ > drivers/pinctrl/core.c:160

[PATCH] pinctrl: core: Add missing #ifdef CONFIG_GPIOLIB

2020-10-28 Thread He Zhe
To fix the following build warnings when CONFIG_GPIOLIB=n. drivers/pinctrl/core.c:1607:20: warning: unused variable 'chip' [-Wunused-variable] 1608 | struct gpio_chip *chip; |^~~~ drivers/pinctrl/core.c:1606:15: warning: unused variable 'gpio_num' [-Wunused-variable]