gpiolib: split character device into gpiolib-cdev
authorKent Gibson <warthog618@gmail.com>
Tue, 16 Jun 2020 09:36:15 +0000 (17:36 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 20 Jun 2020 20:38:37 +0000 (22:38 +0200)
commit925ca36913fc7dfee9d0bb7f36d81dd108a7b80f
tree0120ec15bed1f10bc70d6480572a66aaaece69eb
parent1f6bd574e9d575bd79bca8312dfd3d9345389940
gpiolib: split character device into gpiolib-cdev

Split the cdev specific functionality out of gpiolib.c and into
gpiolib-cdev.c. This improves the readability and maintainability of both
the cdev and core gpiolib code.

Suggested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20200616093615.5167-1-warthog618@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Makefile
drivers/gpio/gpiolib-cdev.c [new file with mode: 0644]
drivers/gpio/gpiolib-cdev.h [new file with mode: 0644]
drivers/gpio/gpiolib.c