Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: intel_soc_pmic: Ensure GPIO irq is set to input pin

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>

authored by

Jarkko Nikula and committed by
Lee Jones
9dc50219 ad7b5a17

+1 -1
+1 -1
drivers/mfd/intel_soc_pmic_core.c
··· 31 31 struct gpio_desc *desc; 32 32 int irq; 33 33 34 - desc = devm_gpiod_get_index(dev, "intel_soc_pmic", 0); 34 + desc = devm_gpiod_get_index(dev, "intel_soc_pmic", 0, GPIOD_IN); 35 35 if (IS_ERR(desc)) 36 36 return PTR_ERR(desc); 37 37