Commit c4015aa7 authored by Benjamin Tissoires's avatar Benjamin Tissoires
parent 09c555fa
...@@ -78,8 +78,6 @@ static const __u8 fixed_rdesc[] = { ...@@ -78,8 +78,6 @@ static const __u8 fixed_rdesc[] = {
0xc0, // End Collection 106 0xc0, // End Collection 106
}; };
#define BIT(n) (1UL << n)
#define TIP_SWITCH BIT(0) #define TIP_SWITCH BIT(0)
#define BARREL_SWITCH BIT(1) #define BARREL_SWITCH BIT(1)
#define ERASER BIT(2) #define ERASER BIT(2)
......
...@@ -66,6 +66,7 @@ extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx, ...@@ -66,6 +66,7 @@ extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx,
#define HID_VID_ANY 0x0000 #define HID_VID_ANY 0x0000
#define HID_PID_ANY 0x0000 #define HID_PID_ANY 0x0000
#define BIT(n) (1UL << (n))
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
/* Helper macro to convert (foo, __LINE__) into foo134 so we can use __LINE__ for /* Helper macro to convert (foo, __LINE__) into foo134 so we can use __LINE__ for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment