projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1de3821
)
regulator: fixed: Use gpio_is_valid
author
Markus Pargmann
<mpa@pengutronix.de>
Mon, 3 Nov 2014 18:12:05 +0000
(19:12 +0100)
committer
Mark Brown
<broonie@kernel.org>
Fri, 7 Nov 2014 11:30:25 +0000
(11:30 +0000)
Use gpio_is_valid instead of an explicit comparison with 0.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/fixed.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/fixed.c
b/drivers/regulator/fixed.c
index 17f6a7d331f843d3e5dbf76b227d5a8ef5b42a78..709fba19e596126532c8dd3f9132ff5282e9366e 100644
(file)
--- a/
drivers/regulator/fixed.c
+++ b/
drivers/regulator/fixed.c
@@
-157,7
+157,7
@@
static int reg_fixed_voltage_probe(struct platform_device *pdev)
drvdata->desc.fixed_uV = config->microvolts;
- if (
config->gpio >= 0
) {
+ if (
gpio_is_valid(config->gpio)
) {
cfg.ena_gpio = config->gpio;
if (pdev->dev.of_node)
cfg.ena_gpio_initialized = true;