diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2018-04-15 23:25:00 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-05-16 15:35:24 +0300 |
commit | 8d0bd9a5c2ce31942f71d5a831ee8cecda5201a8 (patch) | |
tree | c1cda3b51974761562eacdf019d4d8f8494f5685 /security/apparmor | |
parent | ba78d83be7d04f03a7fe6133efb5b6f83b9b0e7c (diff) | |
download | linux-8d0bd9a5c2ce31942f71d5a831ee8cecda5201a8.tar.xz |
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 <vz@mleia.com>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'security/apparmor')
0 files changed, 0 insertions, 0 deletions