gpio: sysfs: move irq trigger flags to class-device data
authorJohan Hovold <johan@kernel.org>
Mon, 4 May 2015 15:10:48 +0000 (17:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 08:47:57 +0000 (10:47 +0200)
commitcef1717b7ff9ad7de747aedb5d222936913570fd
tree6614b35559b213402831344867b2c7d583fe742f
parent427fdeef5014c77aea7ca10c104d534786c3c1e0
gpio: sysfs: move irq trigger flags to class-device data

Move irq trigger flags, which as sysfs-interface specific, to the class
device data.

This avoids accessing the gpio-descriptor flags field using non-atomic
operations without any locking, and allows for a more clear separation
of the sysfs interface from gpiolib core.

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