* [PATCH -next] regulator: rk808: Add missing include file
@ 2015-07-21 16:00 Guenter Roeck
2015-07-21 16:09 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Guenter Roeck @ 2015-07-21 16:00 UTC (permalink / raw)
To: Liam Girdwood; +Cc: Mark Brown, linux-kernel, Guenter Roeck, Chris Zhong
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")
Cc: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/regulator/rk808-regulator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c
index cfec52c1a4a2..2dd4e7df2ae4 100644
--- a/drivers/regulator/rk808-regulator.c
+++ b/drivers/regulator/rk808-regulator.c
@@ -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>
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] regulator: rk808: Add missing include file
2015-07-21 16:00 [PATCH -next] regulator: rk808: Add missing include file Guenter Roeck
@ 2015-07-21 16:09 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2015-07-21 16:09 UTC (permalink / raw)
To: Guenter Roeck; +Cc: Liam Girdwood, linux-kernel, Chris Zhong
[-- Attachment #1: Type: text/plain, Size: 197 bytes --]
On Tue, Jul 21, 2015 at 09:00:07AM -0700, Guenter Roeck wrote:
> Include gpio/consumer.h to avoid the following build errors if GPIOLIB
> is not configured.
Someone already sent a patch for this.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-21 16:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-21 16:00 [PATCH -next] regulator: rk808: Add missing include file Guenter Roeck
2015-07-21 16:09 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.