]> git.baikalelectronics.ru Git - kernel.git/commit
platform: hp_accel: add a i8042 filter to remove HPQ6000 data from kb bus stream
authorGiedrius Statkevicius <giedriuswork@gmail.com>
Thu, 30 Oct 2014 16:57:47 +0000 (18:57 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Fri, 7 Nov 2014 18:37:03 +0000 (10:37 -0800)
commit0cd3a6b0966a8434d27b7356debe704c85647fdd
tree209e1ba0ed1f18d6e83099c0f1894b105a5df487
parent49e014ef0bb50a5920b3ba77dba4af38a0529f58
platform: hp_accel: add a i8042 filter to remove HPQ6000 data from kb bus stream

Add a i8042 filter to hp_accel to remove accelerometer's data with acpi
id HPQ6000 from keyboard bus stream. The codes sent by accelerometer are
e0 25, e0 26, e0 27 and e0 28. The relevant information is already
passed through /dev/freefall so no need to send these undocumented weird
signals through the keyboard bus. Also, unclogs `dmesg` because atkbd
complained about weird scan codes, saves processing power and disk
space.

Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Éric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/hp_accel.c