Files
android_kernel_xiaomi_sm8450/drivers/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
..
2015-03-17 17:45:59 +01:00
2015-01-20 11:03:07 +01:00
2015-01-20 11:03:07 +01:00
2015-05-05 17:50:07 +02:00
2015-05-12 09:41:28 +02:00
2015-05-12 09:41:28 +02:00
2015-05-12 10:13:41 +02:00
2015-01-22 09:45:24 +01:00
2015-05-12 10:13:41 +02:00
2015-05-12 10:46:15 +02:00