From: Todd Broch Date: Wed, 3 Sep 2014 23:56:12 +0000 (-0700) Subject: Input: cros_ec_keyb - optimize ghosting algorithm X-Git-Tag: fixes-for-v3.18-merge-window~26^2^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=017f14e88bf15ca96eb377b3b14fc3c3332e6b9b;p=pandora-kernel.git 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 Reviewed-by: Vincent Palatin Reviewed-by: Luigi Semenzato Tested-by: Andreas Färber Signed-off-by: Javier Martinez Canillas Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed