projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b1ada8
)
regulator: gpio: Warn if an invalid regulator-type is supplied
author
Mark Brown
<broonie@linaro.org>
Thu, 5 Dec 2013 19:09:55 +0000
(19:09 +0000)
committer
Mark Brown
<broonie@linaro.org>
Fri, 6 Dec 2013 12:15:33 +0000
(12:15 +0000)
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/gpio-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/gpio-regulator.c
b/drivers/regulator/gpio-regulator.c
index
cdb9d94
..
49fe20f
100644
(file)
--- a/
drivers/regulator/gpio-regulator.c
+++ b/
drivers/regulator/gpio-regulator.c
@@
-210,6
+210,9
@@
of_get_gpio_regulator_config(struct device *dev, struct device_node *np)
config->type = REGULATOR_VOLTAGE;
else if (!strncmp("current", regtype, 7))
config->type = REGULATOR_CURRENT;
+ else
+ dev_warn(dev, "Unknown regulator-type '%s'\n",
+ regtype);
}
return config;