• J
    HID: wacom: Introduce a new WACOM_DEVICETYPE_PAD device_type · 862cf553
    Jason Gerecke 提交于
    Historically, both the touch and pad tools would have shared the
    'BTN_TOOL_FINGER' type. Any time you needed to distinguish the two, you
    had to use some other bit of knowledge (e.g. that the pad was on the same
    interface as the pen, and thus 'touch_max' would be zero).
    
    To make these checks more readable, we introduce WACOM_DEVICETYPE_PAD.
    Although we still have to rely on other bits of knowledge to set this
    bit on the right interface (since it cannot be detected from the HID
    descriptor), it can be done just once inside 'wacom_setup_device_quirks'.
    
    This patch introduces no functional changes.
    Signed-off-by: NJason Gerecke <jason.gerecke@wacom.com>
    Signed-off-by: NJiri Kosina <jkosina@suse.cz>
    862cf553
wacom_wac.c 107.6 KB