gpio: sysfs: only call irq helper if needed
authorJohan Hovold <johan@kernel.org>
Mon, 4 May 2015 15:10:40 +0000 (17:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 08:47:23 +0000 (10:47 +0200)
commitb91e18076f0d3ff9b49322a5b8eee595a1e4c082
tree7157afd79213f55aa2ed3d0a5fa63cf1f9014169
parenta08f5c21f4a069cd75eb8a6170e3fe8b96e964d6
gpio: sysfs: only call irq helper if needed

Only call irq helper if actually reconfiguring interrupt state.

This is a preparatory step in introducing separate gpio-irq request and
free functions.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-sysfs.c