diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-01-27 09:51:22 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-28 13:22:28 +0100 |
commit | f3c6a1a194317f3a31ee2b2067bb0a41de64bc8b (patch) | |
tree | b6100fa2bca3ee1d5b93eb1486cfb224c134894c /net/key | |
parent | regulator: da9063: Check return value of devm_regmap_field_alloc calls (diff) | |
download | linux-f3c6a1a194317f3a31ee2b2067bb0a41de64bc8b.tar.xz linux-f3c6a1a194317f3a31ee2b2067bb0a41de64bc8b.zip |
regulator: mcp16502: Include linux/gpio/consumer.h to fix build error
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);
^~~~~~~~~~~~~~~
gpio_set_value
drivers/regulator/mcp16502.c: In function ‘mcp16502_probe’:
drivers/regulator/mcp16502.c:486:13: error: implicit declaration of function ‘devm_gpiod_get’; did you mean ‘devm_gpio_free’? [-Werror=implicit-function-declaration]
mcp->lpm = devm_gpiod_get(dev, "lpm", GPIOD_OUT_LOW);
^~~~~~~~~~~~~~
devm_gpio_free
drivers/regulator/mcp16502.c:486:40: error: ‘GPIOD_OUT_LOW’ undeclared (first use in this function); did you mean ‘GPIOF_INIT_LOW’?
mcp->lpm = devm_gpiod_get(dev, "lpm", GPIOD_OUT_LOW);
^~~~~~~~~~~~~
GPIOF_INIT_LOW
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions