From: Guenter Roeck <linux@roeck-us.net>
To: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>,
linux-kernel@vger.kernel.org, Guenter Roeck <linux@roeck-us.net>,
Chris Zhong <zyw@rock-chips.com>
Subject: [PATCH -next] regulator: rk808: Add missing include file
Date: Tue, 21 Jul 2015 09:00:07 -0700 [thread overview]
Message-ID: <1437494407-16830-1-git-send-email-linux@roeck-us.net> (raw)
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
next reply other threads:[~2015-07-21 16:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-21 16:00 Guenter Roeck [this message]
2015-07-21 16:09 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1437494407-16830-1-git-send-email-linux@roeck-us.net \
--to=linux@roeck-us.net \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zyw@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®