diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2016-03-07 16:24:20 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-03-09 10:08:02 +0100 |
commit | cebedf73c49c29f133a7649aa3825c48606a3b42 (patch) | |
tree | 31880feface14b077e00c41768fcd8c45ffd9f1f /drivers | |
parent | 390f62a9248ea1c1abd1e5147d7800965133ea45 (diff) |
rn5txxx-regulator.c: allow GPIO 0 to be used for an enable signal
Follow commit 286098c029bda740822e68ba6ac2ba0b2fe7c5d3
GPIO number 0 *is* legal and must be accepted.
Set .ena_gpio to -ENODEV on regulators having no GPIO in preparation
of a code change to accept GPIO 0 in the config.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/regulator/rn5t567-regulator.c | 2 | ||||
-rw-r--r-- | drivers/regulator/rn5t618-regulator.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/rn5t567-regulator.c b/drivers/regulator/rn5t567-regulator.c index 8ac1b010c8b3..bd0313d2fbce 100644 --- a/drivers/regulator/rn5t567-regulator.c +++ b/drivers/regulator/rn5t567-regulator.c @@ -104,7 +104,7 @@ static int rn5t618_regulator_parse_dt(struct platform_device *pdev) static int rn5t618_regulator_probe(struct platform_device *pdev) { struct rn5t618 *rn5t618 = dev_get_drvdata(pdev->dev.parent); - struct regulator_config config = { }; + struct regulator_config config = { .ena_gpio = -ENODEV }; struct regulator_dev *rdev; int ret, i; diff --git a/drivers/regulator/rn5t618-regulator.c b/drivers/regulator/rn5t618-regulator.c index e58d79aeb393..6f395021d950 100644 --- a/drivers/regulator/rn5t618-regulator.c +++ b/drivers/regulator/rn5t618-regulator.c @@ -102,7 +102,7 @@ static int rn5t618_regulator_parse_dt(struct platform_device *pdev) static int rn5t618_regulator_probe(struct platform_device *pdev) { struct rn5t618 *rn5t618 = dev_get_drvdata(pdev->dev.parent); - struct regulator_config config = { }; + struct regulator_config config = { .ena_gpio = -ENODEV }; struct regulator_dev *rdev; int ret, i; |