summaryrefslogtreecommitdiff
path: root/drivers/regulator/fixed.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-05-07 14:28:19 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-07 15:31:05 +0400
commit9a50dba509251dfce7895a5990cb938f383a6273 (patch)
tree6c0dbf0b49fe728972dbfbbf066630940d9f9bfe /drivers/regulator/fixed.c
parent62f6b0879304e2169d6bf6221612e8111e342ee7 (diff)
downloadlinux-9a50dba509251dfce7895a5990cb938f383a6273.tar.xz
regulator: fixed: add property for gpio open drain flag
Add property for the gpio flag open drain when registering fixed regulator. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/fixed.c')
-rw-r--r--drivers/regulator/fixed.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index bd437c133b00..f09fe7b20e82 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -90,6 +90,9 @@ of_get_fixed_voltage_config(struct device *dev)
if (of_find_property(np, "enable-active-high", NULL))
config->enable_high = true;
+ if (of_find_property(np, "gpio-open-drain", NULL))
+ config->gpio_is_open_drain = true;
+
return config;
}