]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd400f7ac4f1a3b920a9ce28c73c381dd872849b3
treeaca4468d551f4068965bb6a0cc6be231a05c8acb
parentc12fe9fa384b87ea5670383859f245819030a4bd
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