Re: [PATCH] driver: pinctrl: fix unused variable warning
From: Andy Shevchenko
Date: Fri Dec 11 2020 - 14:00:09 EST
On Fri, Dec 11, 2020 at 1:46 PM <chenlei0x@xxxxxxxxx> wrote:
>
> From: Lei Chen <lennychen@xxxxxxxxxxx>
>
> In pinctrl_pins_show, range, gpio_num and chip variables are not used if
> CONFIG_GPIOLIB is not defined. Use this macro to wrap them.
>
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/commit/drivers/pinctrl/core.c?h=for-next&id=b507cb92477ad85902783a183c5ce01d16296687
Rule of thumb: base your patches on the latest subsystem tree snapshot.
--
With Best Regards,
Andy Shevchenko