]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbce1298655128315dcdd3a02bf1c99ae3d6e24e3
tree6614b35559b213402831344867b2c7d583fe742f
parent6db7f4dcfb624e871de379609ce09514fe5454c7
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