diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2010-03-03 14:09:53 +0530 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2010-09-02 22:44:42 -0600 |
commit | fd7bb837561d5e9caeb9feb24e0a8d811127dd61 (patch) | |
tree | 0e0058161869e606931c95108cd0c5c570cd4824 /drivers/gpio | |
parent | 99fe84061976e8283c161bd1aeeb327523d1c30e (diff) |
stmpe2401: don't hardcode gpio start
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/stmpe2401.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/stmpe2401.c b/drivers/gpio/stmpe2401.c index b813d5dd48e..ae15b8f8e7d 100644 --- a/drivers/gpio/stmpe2401.c +++ b/drivers/gpio/stmpe2401.c @@ -271,7 +271,7 @@ static void stmpe2401_setup_gpio(struct stmpe2401_chip *chip, int gpios) int stmpe2401_set_callback(int irq, void *handler, void *data) { mutex_lock(&the_stmpe2401->lock); - irq -= 268; + irq -= the_stmpe2401->gpio_start; the_stmpe2401->handlers[irq] = handler; the_stmpe2401->data[irq] = data; @@ -291,7 +291,7 @@ EXPORT_SYMBOL(stmpe2401_set_callback); int stmpe2401_remove_callback(int irq) { mutex_lock(&the_stmpe2401->lock); - irq -= 268; + irq -= the_stmpe2401->gpio_start; the_stmpe2401->handlers[irq] = NULL; the_stmpe2401->data[irq] = 0; /*if required, you can disable interrupt here |