sinowealth: put some macros into enums
#include "libratbag-private.h"
#include "libratbag-hidraw.h"
-#define SINOWEALTH_REPORT_ID_CONFIG 0x4
-#define SINOWEALTH_REPORT_ID_CONFIG_LONG 0x6
-#define SINOWEALTH_REPORT_ID_CMD 0x5
-#define SINOWEALTH_CMD_FIRMWARE_VERSION 0x1
-#define SINOWEALTH_CMD_GET_CONFIG 0x11
+enum sinowealth_report_id {
+ SINOWEALTH_REPORT_ID_CONFIG = 0x4,
+ SINOWEALTH_REPORT_ID_CMD = 0x5,
+ SINOWEALTH_REPORT_ID_CONFIG_LONG = 0x6,
+};
+
+enum sinowealth_command_id {
+ SINOWEALTH_CMD_FIRMWARE_VERSION = 0x1,
+ SINOWEALTH_CMD_GET_CONFIG = 0x11,
+};
+
#define SINOWEALTH_CONFIG_SIZE 520
#define SINOWEALTH_CONFIG_SIZE_USED_MIN 131
#define SINOWEALTH_CONFIG_SIZE_USED_MAX 167
