]> Pileus Git - ~andy/linux/blobdiff - drivers/media/video/cx88/cx88-input.c
[media] ir-core: remove remaining users of the ir-functions keyhandlers
[~andy/linux] / drivers / media / video / cx88 / cx88-input.c
index 436ace8196a5c2a60696627716bcc9ef29184c91..564e3cb29c4d2755fdeec2659543d39a00f16d4d 100644 (file)
@@ -131,16 +131,21 @@ static void cx88_ir_handle_key(struct cx88_IR *ir)
        } else if (ir->mask_keydown) {
                /* bit set on keydown */
                if (gpio & ir->mask_keydown)
-                       ir_keydown(ir->input, data, 0);
+                       ir_keydown_notimeout(ir->input, data, 0);
+               else
+                       ir_keyup(ir->input);
 
        } else if (ir->mask_keyup) {
                /* bit cleared on keydown */
                if (0 == (gpio & ir->mask_keyup))
-                       ir_keydown(ir->input, data, 0);
+                       ir_keydown_notimeout(ir->input, data, 0);
+               else
+                       ir_keyup(ir->input);
 
        } else {
                /* can't distinguish keydown/up :-/ */
-               ir_keydown(ir->input, data, 0);
+               ir_keydown_notimeout(ir->input, data, 0);
+               ir_keyup(ir->input);
        }
 }