]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
gpio: move sysfs mock device to the gpio_device
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 9 Feb 2016 12:21:06 +0000 (13:21 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 11 Feb 2016 17:16:54 +0000 (18:16 +0100)
commitafbc4f312b5e6e87fcd383eb6764e09f1324c78e
tree5428e0fe100c576dd158bba68df183010cee2009
parent9efd9e6956adf479eb85beb74bb975f702dc01a9
gpio: move sysfs mock device to the gpio_device

Since gpio_device is the struct that survives if the backing
gpio_chip is removed, move the sysfs mock device to this state
container so it becomes part of the dangling state of the
GPIO device on removal.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-sysfs.c
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h
include/linux/gpio/driver.h