Commit c4015aa7 authored by Benjamin Tissoires's avatar Benjamin Tissoires
Browse files
parent 09c555fa
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -78,8 +78,6 @@ static const __u8 fixed_rdesc[] = {
	0xc0,                          // End Collection                      106
};

#define BIT(n) (1UL << n)

#define TIP_SWITCH		BIT(0)
#define BARREL_SWITCH		BIT(1)
#define ERASER			BIT(2)
+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx,
#define HID_VID_ANY				0x0000
#define HID_PID_ANY				0x0000

#define BIT(n) (1UL << (n))
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))

/* Helper macro to convert (foo, __LINE__)  into foo134 so we can use __LINE__ for