gpiolib: make cdev a build option
authorKent Gibson <warthog618@gmail.com>
Mon, 28 Sep 2020 00:27:52 +0000 (08:27 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 30 Sep 2020 08:56:42 +0000 (10:56 +0200)
commitd143493c01b7fc3a9b9369a795e20329561222c5
treea775840c49b5364aed598090f582003a706741db
parentb53911aa872db462be2e5f1dd611b25c4c2e663b
gpiolib: make cdev a build option

Make the gpiolib-cdev module a build option.  This allows the CDEV
interface to be removed from the kernel to reduce kernel size in
applications where is it not required, and provides the parent for
other CDEV interface specific build options to follow.

Suggested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpiolib-cdev.h