• Benjamin Tissoires's avatar
    Input: wacom - switch from an USB driver to a HID driver · 29b47391
    Benjamin Tissoires authored
    All USB Wacom tablets are actually HID devices.
    For historical reasons, they are handled as plain USB devices.
    The current code makes more and more reference to the HID subsystem
    like implementing its own HID report descriptor parser to handle new
    devices.
    
    From the user point of view, we can transparently switch from this state
    to a driver handled in the HID subsystem and clean up a lot of USB specific
    code in the wacom.ko driver.
    
    The other benefit once the USB dependecies have been removed is that we can
    use a tool like uhid to make regression tests and allow further cleanup or
    new implementations without risking breaking current behaviors.
    
    To match the current handling of devices in wacom_wac.c, we rely on the
    hid_type set by usbhid. usbhid sets the hid_type to HID_TYPE_USBMOUSE when
    it sees a USB boot mouse protocol declared and HID_TYPE_USBNONE when the
    device is plain HID. There is thus a one to one matching between the list
    of supported devices before and after the switch from USB to HID.
    Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
    Reviewed-by: default avatarJason Gerecke <killertofu@gmail.com>
    Tested-by: default avatarJason Gerecke <killertofu@gmail.com>
    Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
    29b47391
hid.h 32.6 KB