mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Input: tnetv107x-keypad - make irqs signed for error handling
There is a bug in keypad_probe() where we do:
kp->irq_press = platform_get_irq_byname(pdev, "press");
kp->irq_release = platform_get_irq_byname(pdev, "release");
if (kp->irq_press < 0 || kp->irq_release < 0) {
The problem is that these irq variables are unsigned so the error
handling doesn't work. I've changed them to signed values.
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
c6d81bd723
commit
a108193cf9
1 changed files with 2 additions and 2 deletions
|
|
@ -60,8 +60,8 @@ struct keypad_data {
|
|||
struct clk *clk;
|
||||
struct device *dev;
|
||||
spinlock_t lock;
|
||||
u32 irq_press;
|
||||
u32 irq_release;
|
||||
int irq_press;
|
||||
int irq_release;
|
||||
int rows, cols, row_shift;
|
||||
int debounce_ms, active_low;
|
||||
u32 prev_keys[3];
|
||||
|
|
|
|||
Loading…
Reference in a new issue