833-gpio_buttons.patch 1.1 KB

123456789101112131415161718192021222324252627282930
  1. --- a/drivers/input/misc/Kconfig
  2. +++ b/drivers/input/misc/Kconfig
  3. @@ -544,4 +544,20 @@ config INPUT_XEN_KBDDEV_FRONTEND
  4. To compile this driver as a module, choose M here: the
  5. module will be called xen-kbdfront.
  6. +config INPUT_GPIO_BUTTONS
  7. + tristate "Polled GPIO buttons interface"
  8. + depends on GENERIC_GPIO
  9. + select INPUT_POLLDEV
  10. + help
  11. + This driver implements support for buttons connected
  12. + to GPIO pins of various CPUs (and some other chips).
  13. +
  14. + Say Y here if your device has buttons connected
  15. + directly to such GPIO pins. Your board-specific
  16. + setup logic must also provide a platform device,
  17. + with configuration data saying which GPIOs are used.
  18. +
  19. + To compile this driver as a module, choose M here: the
  20. + module will be called gpio-buttons.
  21. +
  22. endif
  23. --- a/drivers/input/misc/Makefile
  24. +++ b/drivers/input/misc/Makefile
  25. @@ -51,3 +51,4 @@ obj-$(CONFIG_INPUT_WISTRON_BTNS) += wist
  26. obj-$(CONFIG_INPUT_WM831X_ON) += wm831x-on.o
  27. obj-$(CONFIG_INPUT_XEN_KBDDEV_FRONTEND) += xen-kbdfront.o
  28. obj-$(CONFIG_INPUT_YEALINK) += yealink.o
  29. +obj-$(CONFIG_INPUT_GPIO_BUTTONS) += gpio_buttons.o