platform/x86: thinkpad_acpi: suppress warning about palm detection
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 12 Jan 2018 11:04:45 +0000 (12:04 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 24 Jan 2018 06:39:06 +0000 (08:39 +0200)
commit587d8628fb71c3bfae29fb2bbe84c1478c59bac8
treee5a128d27bb949c845d7cca70098eafb9a743640
parent4245c155421bf37c2c684ec74915fd535e737b03
platform/x86: thinkpad_acpi: suppress warning about palm detection

This patch prevents the thinkpad_acpi driver from warning about 2 event
codes returned for keyboard palm-detection. No behavioral changes,
other than suppressing the warning in the kernel log. The events are
still forwarded via acpi-netlink channels.

We could, optionally, decide to forward the event through a
input-switch on the tpacpi input device. However, so far no suitable
input-code exists, and no similar drivers report such events. Hence,
leave it an acpi event for now.

Note that the event-codes are named based on empirical studies. On the
ThinkPad X1 5th Gen the sensor can be found underneath the arrow key.

Cc: Matthew Thode <mthode@mthode.org>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c