gpio: sysfs: clean up interrupt-interface implementation
authorJohan Hovold <johan@kernel.org>
Mon, 4 May 2015 15:10:39 +0000 (17:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 08:47:19 +0000 (10:47 +0200)
commita08f5c21f4a069cd75eb8a6170e3fe8b96e964d6
treeaca4468d551f4068965bb6a0cc6be231a05c8acb
parent0f62850808b9ad14e933a68bd11d7c41f1930dfe
gpio: sysfs: clean up interrupt-interface implementation

Store the value sysfs entry in the gpiod data rather than in a global
table accessed through an index stored in the overloaded gpio-descriptor
flag field.

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
drivers/gpio/gpiolib.h