HID: wacom: more appropriate tool type categorization
authorTatsunosuke Tobita <tatsunosuke.tobita@wacom.com>
Tue, 9 Jul 2024 05:57:29 +0000 (14:57 +0900)
committerBenjamin Tissoires <bentiss@kernel.org>
Thu, 18 Jul 2024 06:13:28 +0000 (08:13 +0200)
commit9c2913b962daf3e5a947babf93f2125765eeca09
treef1b1ece77d31175f918b5272a30dfc5cd85c9f2f
parentf0d17d696dfce77c9abc830e4ac2d677890a2dad
HID: wacom: more appropriate tool type categorization

Recent eraser and pen tools are able to be distinguished
by looking at its least significant nibble.
This modification applies it to wacom_intuos_get_tool_type
function and reduces its code lines.

Signed-off-by: Tatsunosuke Tobita <tatsunosuke.tobita@wacom.com>
Signed-off-by: Tatsunosuke Tobita <tatsunosuke.wacom@gmail.com>
Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
Link: https://patch.msgid.link/20240709055729.17158-2-tatsunosuke.wacom@gmail.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/wacom_wac.c