Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: aiptek - use HID headers

The driver uses its own definitions for HID requests.
This leads to duplication and obfuscation. Use HID's
definitions.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://patch.msgid.link/20260325143256.371854-1-oneukum@suse.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Oliver Neukum and committed by
Dmitry Torokhov
ffd01c3b 653f3100

+3 -4
+3 -4
drivers/input/tablet/aiptek.c
··· 57 57 * http://aiptektablet.sourceforge.net. 58 58 */ 59 59 60 + #include <linux/hid.h> 60 61 #include <linux/jiffies.h> 61 62 #include <linux/kernel.h> 62 63 #include <linux/slab.h> ··· 165 164 166 165 #define USB_VENDOR_ID_AIPTEK 0x08ca 167 166 #define USB_VENDOR_ID_KYE 0x0458 168 - #define USB_REQ_GET_REPORT 0x01 169 - #define USB_REQ_SET_REPORT 0x09 170 167 171 168 /* PointerMode codes 172 169 */ ··· 855 856 856 857 return usb_control_msg(udev, 857 858 usb_sndctrlpipe(udev, 0), 858 - USB_REQ_SET_REPORT, 859 + HID_REQ_SET_REPORT, 859 860 USB_TYPE_CLASS | USB_RECIP_INTERFACE | 860 861 USB_DIR_OUT, (report_type << 8) + report_id, 861 862 aiptek->ifnum, buffer, size, 5000); ··· 870 871 871 872 return usb_control_msg(udev, 872 873 usb_rcvctrlpipe(udev, 0), 873 - USB_REQ_GET_REPORT, 874 + HID_REQ_GET_REPORT, 874 875 USB_TYPE_CLASS | USB_RECIP_INTERFACE | 875 876 USB_DIR_IN, (report_type << 8) + report_id, 876 877 aiptek->ifnum, buffer, size, 5000);