Commit cba22045 authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

twl4030 keypad irq & dependencies

Disable the TWL4030_MODIRQ_KEYPAD symbol and remove all its uses.
It's not needed any more now that platform_get_irq() works for
these keypad devices.

Also remove inappropriate board-specific Kconfig dependencies.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 83a909a4
......@@ -182,7 +182,6 @@ static struct twl4030_keypad_data sdp2430_kp_data = {
.keymap = sdp2430_keymap,
.keymapsize = ARRAY_SIZE(sdp2430_keymap),
.rep = 1,
.irq = TWL4030_MODIRQ_KEYPAD,
};
static int __init msecure_init(void)
......
......@@ -118,7 +118,6 @@ static struct twl4030_keypad_data sdp3430_kp_data = {
.keymap = sdp3430_keymap,
.keymapsize = ARRAY_SIZE(sdp3430_keymap),
.rep = 1,
.irq = TWL4030_MODIRQ_KEYPAD,
};
static int ts_gpio;
......
......@@ -101,7 +101,6 @@ static struct twl4030_keypad_data ldp_kp_twl4030_data = {
.keymap = ldp_twl4030_keymap,
.keymapsize = ARRAY_SIZE(ldp_twl4030_keymap),
.rep = 1,
.irq = TWL4030_MODIRQ_KEYPAD,
};
static struct gpio_keys_button ldp_gpio_keys_buttons[] = {
......
......@@ -273,7 +273,6 @@ static struct twl4030_keypad_data omap2evm_kp_data = {
.keymap = omap2evm_keymap,
.keymapsize = ARRAY_SIZE(omap2evm_keymap),
.rep = 1,
.irq = TWL4030_MODIRQ_KEYPAD,
};
static void __init omap2_evm_init_irq(void)
......
......@@ -125,7 +125,6 @@ static struct twl4030_keypad_data omap3evm_kp_data = {
.keymap = omap3evm_keymap,
.keymapsize = ARRAY_SIZE(omap3evm_keymap),
.rep = 1,
.irq = TWL4030_MODIRQ_KEYPAD,
};
static struct twl4030_madc_platform_data omap3evm_madc_data = {
......
......@@ -261,7 +261,7 @@ config KEYBOARD_OMAP
config KEYBOARD_TWL4030
tristate "TI TWL4030 keypad support"
depends on TWL4030_CORE && (MACH_OMAP_2430SDP || MACH_OMAP2EVM || MACH_OMAP_3430SDP || MACH_OMAP3EVM || MACH_OMAP_LDP)
depends on TWL4030_CORE
help
Say Y here if you want to use the OMAP TWL4030 keypad.
......
......@@ -269,7 +269,7 @@ static int __init omap_kp_probe(struct platform_device *pdev)
kp->keymapsize = pdata->keymapsize;
kp->n_rows = pdata->rows;
kp->n_cols = pdata->cols;
kp->irq = pdata->irq;
kp->irq = platform_get_irq(pdev, 0);
/* setup input device */
set_bit(EV_KEY, kp->omap_twl4030kp->evbit);
......
......@@ -259,7 +259,6 @@ struct twl4030_keypad_data {
int rows;
int cols;
int *keymap;
int irq;
unsigned int keymapsize;
unsigned int rep:1;
};
......@@ -374,7 +373,7 @@ int twl4030_sih_setup(int module);
/* TWL4030 interrupts */
/* #define TWL4030_MODIRQ_GPIO (TWL4030_IRQ_BASE + 0) */
#define TWL4030_MODIRQ_KEYPAD (TWL4030_IRQ_BASE + 1)
/* #define TWL4030_MODIRQ_KEYPAD (TWL4030_IRQ_BASE + 1) */
#define TWL4030_MODIRQ_BCI (TWL4030_IRQ_BASE + 2)
#define TWL4030_MODIRQ_MADC (TWL4030_IRQ_BASE + 3)
/* #define TWL4030_MODIRQ_USB (TWL4030_IRQ_BASE + 4) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment