]> 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)
commita9287f44c4692ae9e74bca15a43b0dcfefab4297
tree209e1ba0ed1f18d6e83099c0f1894b105a5df487
parent4cc72803339cc4d029500b99d2a1fa66bb0435d7
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