projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a451405
)
regulator: show state for GPIO-controlled regulators
author
Michał Mirosław
<mirq-linux@rere.qmqm.pl>
Fri, 1 Feb 2013 19:40:17 +0000
(20:40 +0100)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 4 Feb 2013 18:38:06 +0000
(18:38 +0000)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/core.c
b/drivers/regulator/core.c
index
2785843
..
6b3550a
100644
(file)
--- a/
drivers/regulator/core.c
+++ b/
drivers/regulator/core.c
@@
-3208,7
+3208,7
@@
static int add_regulator_attributes(struct regulator_dev *rdev)
if (status < 0)
return status;
}
- if (ops->is_enabled) {
+ if (
rdev->ena_gpio ||
ops->is_enabled) {
status = device_create_file(dev, &dev_attr_state);
if (status < 0)
return status;