mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
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>
This commit is contained in:
parent
ffd01c3bcc
commit
734fd5ba78
|
|
@ -36,6 +36,7 @@
|
|||
* T Tip
|
||||
*/
|
||||
|
||||
#include <linux/hid.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/input.h>
|
||||
|
|
@ -44,10 +45,6 @@
|
|||
#include <linux/workqueue.h>
|
||||
#include <linux/mutex.h>
|
||||
|
||||
/* USB HID defines */
|
||||
#define USB_REQ_GET_REPORT 0x01
|
||||
#define USB_REQ_SET_REPORT 0x09
|
||||
|
||||
#define USB_VENDOR_ID_PEGASUSTECH 0x0e20
|
||||
#define USB_DEVICE_ID_PEGASUS_NOTETAKER_EN100 0x0101
|
||||
|
||||
|
|
@ -108,7 +105,7 @@ static int pegasus_control_msg(struct pegasus *pegasus, u8 *data, int len)
|
|||
|
||||
result = usb_control_msg(pegasus->usbdev,
|
||||
usb_sndctrlpipe(pegasus->usbdev, 0),
|
||||
USB_REQ_SET_REPORT,
|
||||
HID_REQ_SET_REPORT,
|
||||
USB_TYPE_VENDOR | USB_DIR_OUT,
|
||||
0, 0, cmd_buf, sizeof_buf,
|
||||
USB_CTRL_SET_TIMEOUT);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user