Skip to contentSkip to conversation

regulator: rk808: Add missing include file

PATCH In review Guenter Roeck 2 participants 2 messages Jul 21, 2015 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regulator: rk808: Add missing include file

Include gpio/consumer.h to avoid the following build errors if GPIOLIB is not configured.

drivers/regulator/rk808-regulator.c:97:2: error:
implicit declaration of function 'gpiod_get_value'
drivers/regulator/rk808-regulator.c:194:2: error:
implicit declaration of function 'gpiod_set_value'
drivers/regulator/rk808-regulator.c:543:3: error:
implicit declaration of function 'gpiod_get_index'
drivers/regulator/rk808-regulator.c:543:62: error: 'GPIOD_ASIS' undeclared drivers/regulator/rk808-regulator.c:549:3: error:
implicit declaration of function 'gpiod_direction_output'
drivers/regulator/rk808-regulator.c:553:5: error:
implicit declaration of function 'gpiod_is_active_low'
drivers/regulator/rk808-regulator.c:569:4: error:
implicit declaration of function 'gpiod_put'

Fixes bad47ad2eef3 ("regulator: rk808: fixed the overshoot when adjust

voltage")

---
 drivers/regulator/rk808-regulator.c | 1 +
 1 file changed, 1 insertion(+)
drivers/regulator/rk808-regulator.c +1 -0
index cfec52c1a4a2..2dd4e7df2ae4 100644
@@ -18,6 +18,7 @@
 
 #include <linux/delay.h>
 #include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/of_device.h>
Signature · 1 line
2.1.0
maintainer
#1 lore raw
Quoted 2 lines · Guenter Roeck

Include gpio/consumer.h to avoid the following build errors if GPIOLIB is not configured.

Someone already sent a patch for this.