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: pegasus_notetaker - use HID defines

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-2-oneukum@suse.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Oliver Neukum and committed by
Dmitry Torokhov
734fd5ba ffd01c3b

+2 -5
+2 -5
drivers/input/tablet/pegasus_notetaker.c
··· 36 36 * T Tip 37 37 */ 38 38 39 + #include <linux/hid.h> 39 40 #include <linux/kernel.h> 40 41 #include <linux/module.h> 41 42 #include <linux/input.h> ··· 44 43 #include <linux/slab.h> 45 44 #include <linux/workqueue.h> 46 45 #include <linux/mutex.h> 47 - 48 - /* USB HID defines */ 49 - #define USB_REQ_GET_REPORT 0x01 50 - #define USB_REQ_SET_REPORT 0x09 51 46 52 47 #define USB_VENDOR_ID_PEGASUSTECH 0x0e20 53 48 #define USB_DEVICE_ID_PEGASUS_NOTETAKER_EN100 0x0101 ··· 105 108 106 109 result = usb_control_msg(pegasus->usbdev, 107 110 usb_sndctrlpipe(pegasus->usbdev, 0), 108 - USB_REQ_SET_REPORT, 111 + HID_REQ_SET_REPORT, 109 112 USB_TYPE_VENDOR | USB_DIR_OUT, 110 113 0, 0, cmd_buf, sizeof_buf, 111 114 USB_CTRL_SET_TIMEOUT);