aboutsummaryrefslogtreecommitdiff
path: root/drivers/hid/bpf/progs/hid_bpf_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/bpf/progs/hid_bpf_helpers.h')
-rw-r--r--drivers/hid/bpf/progs/hid_bpf_helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/bpf/progs/hid_bpf_helpers.h b/drivers/hid/bpf/progs/hid_bpf_helpers.h
index 8f226f6e886b..3ba24d125a08 100644
--- a/drivers/hid/bpf/progs/hid_bpf_helpers.h
+++ b/drivers/hid/bpf/progs/hid_bpf_helpers.h
@@ -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