HID: wacom: Refactor touch input mute checks into a common function
authorJason Gerecke <killertofu@gmail.com>
Mon, 19 Jul 2021 20:55:33 +0000 (13:55 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 28 Jul 2021 09:45:41 +0000 (11:45 +0200)
commit9d339fe4cbd5de150f2d9fd554cc7e7213d09f08
tree8c4038130c10f35ab623ea445ba90a75e25d79f2
parentccb51c2e3f0598934c3698f3645a3cb99add201c
HID: wacom: Refactor touch input mute checks into a common function

We perform this same set of tests to see if touch input is muted in
several places. We might as well replace these independent copies with
an inline function.

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