summaryrefslogtreecommitdiffstats
path: root/include/linux/gpio.h
diff options
context:
space:
mode:
authorJohan Hovold2015-05-04 17:10:31 +0200
committerLinus Walleij2015-05-12 10:46:44 +0200
commit6a4b6b0a3b55f23f4cc9ad85a1539c581bcb0874 (patch)
tree2c4e625f5c707fdea60096b8aa64c991f19b217a /include/linux/gpio.h
parentgpio: sysfs: reduce gpiochip-export locking scope (diff)
downloadkernel-qcow2-linux-6a4b6b0a3b55f23f4cc9ad85a1539c581bcb0874.tar.gz
kernel-qcow2-linux-6a4b6b0a3b55f23f4cc9ad85a1539c581bcb0874.tar.xz
kernel-qcow2-linux-6a4b6b0a3b55f23f4cc9ad85a1539c581bcb0874.zip
gpio: sysfs: clean up chip class-device handling
Clean gpio-chip class device registration and deregistration. The class device is registered when a gpio-chip is added (or from gpiolib_sysfs_init post-core init call), and deregistered when the chip is removed. Store the class device in struct gpio_chip directly rather than do a class-device lookup on deregistration. This also removes the need for the exported flag. Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio.h')
0 files changed, 0 insertions, 0 deletions