Re: [PATCH AUTOSEL 5.0 209/262] regulator: mcp16502: Include linux/gpio/consumer.h to fix build error

From: Sasha Levin
Date: Wed Apr 03 2019 - 20:46:30 EST


On Wed, Mar 27, 2019 at 07:32:11PM +0000, Mark Brown wrote:
On Wed, Mar 27, 2019 at 02:01:04PM -0400, Sasha Levin wrote:
From: Axel Lin <axel.lin@xxxxxxxxxx>

[ Upstream commit f3c6a1a194317f3a31ee2b2067bb0a41de64bc8b ]

Fix below build error:
drivers/regulator/mcp16502.c: In function âmcp16502_gpio_set_modeâ:
drivers/regulator/mcp16502.c:135:3: error: implicit declaration of function âgpiod_set_valueâ; did you mean âgpio_set_valueâ? [-Werror=implicit-function-declaration]
gpiod_set_value(mcp->lpm, 0);

Does this error actually manifest in v5.0?

I couldn't reproduce the error on f3c6a1a194317f^ so I assumed it
requires a specialized config.

--
Thanks,
Sasha