OSDN Git Service

V4L/DVB: ir-core: improve keyup/keydown logic
authorDavid Härdeman <david@hardeman.nu>
Fri, 2 Apr 2010 18:58:29 +0000 (15:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:56:54 +0000 (12:56 -0300)
commita374fef4437abd0a1ee27afe0cca7a55425c1c3c
tree652e36573ac29d360d7f59cfb64a160c08390a54
parent354389467b6b2a3b36666b6e933d78bbd9e23577
V4L/DVB: ir-core: improve keyup/keydown logic

Rewrites the keyup/keydown logic in drivers/media/IR/ir-keytable.c.

All knowledge of keystates etc is now internal to ir-keytable.c
and not scattered around ir-raw-event.c and ir-nec-decoder.c (where
it doesn't belong).

In addition, I've changed the API slightly so that ir_input_dev is
passed as the first argument rather than input_dev. If we're ever
going to support multiple keytables we need to move towards making
ir_input_dev the main interface from a driver POV and obscure away
the input_dev as an implementational detail in ir-core.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-keytable.c
drivers/media/IR/ir-nec-decoder.c
drivers/media/IR/ir-raw-event.c
include/media/ir-core.h