Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: rk808: add #include for gpiod functions

This fixes a build problem on mips found by the kbuild test robot:

drivers/regulator/rk808-regulator.c: In function 'rk808_buck1_2_get_voltage_sel_regmap':
drivers/regulator/rk808-regulator.c:97:2: error: implicit declaration of function 'gpiod_get_value' [-Werror=implicit-function-declaration]
if (IS_ERR(gpio) || gpiod_get_value(gpio) == 0)
^

Fixes: bad47ad2eef3 ("regulator: rk808: fixed the overshoot when adjust voltage")
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Uwe Kleine-König and committed by
Mark Brown
604d4994 bad47ad2

+1
+1
drivers/regulator/rk808-regulator.c
··· 25 25 #include <linux/mfd/rk808.h> 26 26 #include <linux/regulator/driver.h> 27 27 #include <linux/regulator/of_regulator.h> 28 + #include <linux/gpio/consumer.h> 28 29 29 30 /* Field Definitions */ 30 31 #define RK808_BUCK_VSEL_MASK 0x3f