projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad7b5a1
)
mfd: intel_soc_pmic: Ensure GPIO irq is set to input pin
author
Jarkko Nikula
<jarkko.nikula@linux.intel.com>
Fri, 13 Feb 2015 13:01:15 +0000
(15:01 +0200)
committer
Lee Jones
<lee.jones@linaro.org>
Tue, 3 Mar 2015 16:41:12 +0000
(16:41 +0000)
Surely GPIO irq will be used as an input pin so make sure its direction is
set after requesting.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/intel_soc_pmic_core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/intel_soc_pmic_core.c
b/drivers/mfd/intel_soc_pmic_core.c
index
3991ddb
..
7b50b6b
100644
(file)
--- a/
drivers/mfd/intel_soc_pmic_core.c
+++ b/
drivers/mfd/intel_soc_pmic_core.c
@@
-31,7
+31,7
@@
static int intel_soc_pmic_find_gpio_irq(struct device *dev)
struct gpio_desc *desc;
int irq;
- desc = devm_gpiod_get_index(dev, "intel_soc_pmic", 0);
+ desc = devm_gpiod_get_index(dev, "intel_soc_pmic", 0
, GPIOD_IN
);
if (IS_ERR(desc))
return PTR_ERR(desc);