linux-stable/include/linux/gpio
Johan Hovold 6a4b6b0a3b 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>
2015-05-12 10:46:44 +02:00
..
consumer.h gpiolib: add devm_gpiod_get_array and devm_gpiod_put_array functions 2015-03-05 09:55:42 +01:00
driver.h gpio: sysfs: clean up chip class-device handling 2015-05-12 10:46:44 +02:00
machine.h gpio: add missing includes in machine.h 2014-08-07 11:54:51 +02:00