aboutsummaryrefslogtreecommitdiff
path: root/net/lapb
diff options
context:
space:
mode:
authorTodd Broch <[email protected]>2014-09-03 16:56:12 -0700
committerDmitry Torokhov <[email protected]>2014-09-03 17:07:05 -0700
commit017f14e88bf15ca96eb377b3b14fc3c3332e6b9b (patch)
tree358f0ae1a095964bbb9c4aaadf00b89507534b5e /net/lapb
parent516d5f8b04ce2bcd24f03323fc743ae25b81373d (diff)
Input: cros_ec_keyb - optimize ghosting algorithm
Previous algorithm was a bit conservative and complicating with respect to identifying key ghosting. This CL uses the bitops hamming weight function (hweight8) to count the number of matching rows for colM & colN. If that number is > 1 ghosting is present. Additionally it removes NULL keys and our one virtual keypress KEY_BATTERY from consideration as these inputs are never physical keypresses. Signed-off-by: Todd Broch <[email protected]> Reviewed-by: Vincent Palatin <[email protected]> Reviewed-by: Luigi Semenzato <[email protected]> Tested-by: Andreas Färber <[email protected]> Signed-off-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions