[kernel] refresh generic 2.6.24 patches
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches-2.6.24 / 410-gpio_buttons.patch
1 Index: linux-2.6.24.7/drivers/input/misc/Kconfig
2 ===================================================================
3 --- linux-2.6.24.7.orig/drivers/input/misc/Kconfig
4 +++ linux-2.6.24.7/drivers/input/misc/Kconfig
5 @@ -183,4 +183,20 @@ config HP_SDC_RTC
6 Say Y here if you want to support the built-in real time clock
7 of the HP SDC controller.
8
9 +config INPUT_GPIO_BUTTONS
10 + tristate "Polled GPIO buttons interface"
11 + depends on GENERIC_GPIO
12 + select INPUT_POLLDEV
13 + help
14 + This driver implements support for buttons connected
15 + to GPIO pins of various CPUs (and some other chips).
16 +
17 + Say Y here if your device has buttons connected
18 + directly to such GPIO pins. Your board-specific
19 + setup logic must also provide a platform device,
20 + with configuration data saying which GPIOs are used.
21 +
22 + To compile this driver as a module, choose M here: the
23 + module will be called gpio-buttons.
24 +
25 endif
26 Index: linux-2.6.24.7/drivers/input/misc/Makefile
27 ===================================================================
28 --- linux-2.6.24.7.orig/drivers/input/misc/Makefile
29 +++ linux-2.6.24.7/drivers/input/misc/Makefile
30 @@ -18,3 +18,4 @@ obj-$(CONFIG_INPUT_POWERMATE) += powerm
31 obj-$(CONFIG_INPUT_YEALINK) += yealink.o
32 obj-$(CONFIG_HP_SDC_RTC) += hp_sdc_rtc.o
33 obj-$(CONFIG_INPUT_UINPUT) += uinput.o
34 +obj-$(CONFIG_INPUT_GPIO_BUTTONS) += gpio_buttons.o