]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: sysfs: reduce gpiochip-export locking scope
authorJohan Hovold <johan@kernel.org>
Mon, 4 May 2015 15:10:30 +0000 (17:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 08:46:40 +0000 (10:46 +0200)
commit1cb586a43537e60cc16603a0f010feab8c417dae
tree301c70d5cea8d288630022114d213724b953dad6
parent9cbfe624c026db06d2e20be3f694685921a285b4
gpio: sysfs: reduce gpiochip-export locking scope

Reduce scope of sysfs_lock protection during chip export and unexport,
which is only needed to prevent gpiod (re-)exports during chip removal.

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