diff --git a/plugins/csr/fu-csr-device.c b/plugins/csr/fu-csr-device.c index ee4f39b92..b6481dc81 100644 --- a/plugins/csr/fu-csr-device.c +++ b/plugins/csr/fu-csr-device.c @@ -25,15 +25,6 @@ struct _FuCsrDevice G_DEFINE_TYPE (FuCsrDevice, fu_csr_device, FU_TYPE_USB_DEVICE) -#define HID_REPORT_GET 0x01 -#define HID_REPORT_SET 0x09 - -#define HID_REPORT_TYPE_INPUT 0x01 -#define HID_REPORT_TYPE_OUTPUT 0x02 -#define HID_REPORT_TYPE_FEATURE 0x03 - -#define HID_FEATURE 0x0300 - #define FU_CSR_REPORT_ID_COMMAND 0x01 #define FU_CSR_REPORT_ID_STATUS 0x02 #define FU_CSR_REPORT_ID_CONTROL 0x03 diff --git a/src/fu-usb-device.h b/src/fu-usb-device.h index 6db67d451..f3bfbb471 100644 --- a/src/fu-usb-device.h +++ b/src/fu-usb-device.h @@ -18,6 +18,16 @@ G_BEGIN_DECLS #define FU_TYPE_USB_DEVICE (fu_usb_device_get_type ()) G_DECLARE_DERIVABLE_TYPE (FuUsbDevice, fu_usb_device, FU, USB_DEVICE, FuDevice) +/* HID */ +#define HID_REPORT_GET 0x01 +#define HID_REPORT_SET 0x09 + +#define HID_REPORT_TYPE_INPUT 0x01 +#define HID_REPORT_TYPE_OUTPUT 0x02 +#define HID_REPORT_TYPE_FEATURE 0x03 + +#define HID_FEATURE 0x0300 + struct _FuUsbDeviceClass { FuDeviceClass parent_class;