• David Härdeman's avatar
    V4L/DVB: ir-core: improve keyup/keydown logic · a374fef4
    David Härdeman authored
    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: default avatarDavid Härdeman <david@hardeman.nu>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    a374fef4
ir-raw-event.c 5.43 KB