mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
V4L/DVB: IR: fix keys beeing stuck down forever
The logic in ir_timer_keyup was inverted. In case that values aren't equal, the meaning of the time_is_after_eq_jiffies(ir->keyup_jiffies) is that ir->keyup_jiffies is after the the jiffies or equally that that jiffies are before the the ir->keyup_jiffies which is exactly the situation we want to avoid (that the timeout is in the future) Confusing Eh? Signed-off-by: Maxim Levitsky <[email protected]> Acked-by: Jarod Wilson <[email protected]> Cc: [email protected] Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
67332ba832
commit
e0172fd373
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ static void ir_timer_keyup(unsigned long cookie)
|
|||
* a keyup event might follow immediately after the keydown.
|
||||
*/
|
||||
spin_lock_irqsave(&ir->keylock, flags);
|
||||
if (time_is_after_eq_jiffies(ir->keyup_jiffies))
|
||||
if (time_is_before_eq_jiffies(ir->keyup_jiffies))
|
||||
ir_keyup(ir);
|
||||
spin_unlock_irqrestore(&ir->keylock, flags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue