aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-gpio-mm.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2018-04-15 20:25:00 +0000
committerLinus Walleij <[email protected]>2018-05-16 12:35:24 +0000
commit8d0bd9a5c2ce31942f71d5a831ee8cecda5201a8 (patch)
treec1cda3b51974761562eacdf019d4d8f8494f5685 /drivers/gpio/gpio-gpio-mm.c
parentgpio: mvebu: Use the proper APIs (diff)
downloadkernel-8d0bd9a5c2ce31942f71d5a831ee8cecda5201a8.tar.gz
kernel-8d0bd9a5c2ce31942f71d5a831ee8cecda5201a8.zip
gpio: mxc: Remove reliance on <linux/gpio.h>
This is a driver so we should only include <linux/gpio/driver.h>. However this driver was using gpio_get_value() to fetch the current value of a GPIO used as IRQ line to determine trigger direction, so we need a better way than looping over the global GPIO numberspace. Fix this by just calling the .get() function in the GPIO chip, as we don't want to end up creating a consumer dependency on ourselves. Cc: Vladimir Zapolskiy <[email protected]> Cc: Fabio Estevam <[email protected]> Acked-by: Shawn Guo <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-gpio-mm.c')
0 files changed, 0 insertions, 0 deletions