]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Simplify check for presence of single-finger touch
authorJason Gerecke <killertofu@gmail.com>
Thu, 16 Apr 2015 00:22:32 +0000 (17:22 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 23 Apr 2015 08:06:10 +0000 (10:06 +0200)
commit69e8d09487ca09c6a81df48d56ed78e08185177d
tree9eba2f2c0ceb14752ca2d206846367353f6e33eb
parentf4ec712295ac9d5c3e0590988a8e9f8b0fd4c4d5
HID: wacom: Simplify check for presence of single-finger touch

To determine if a touch is present in the single-touch case, we can
simply check if the BTN_TOUCH key is active or not. This will work for
both HID_GENERIC and other device types.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c