diff options
| author | Jiri Kosina <jkosina@suse.com> | 2024-05-14 14:44:49 +0300 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2024-05-14 14:44:49 +0300 |
| commit | e29fd84c5b49085cf27e1d5f27237d2fb19edefe (patch) | |
| tree | b603f41d1b410d9c24ab34ab42e44edca819c43f /include/linux | |
| parent | bc5fbae23a880ebe42d4843294667e932379fb71 (diff) | |
| parent | 89ea968a9d759f71ac7b8d50949a8e5e5bcb1111 (diff) | |
| download | linux-e29fd84c5b49085cf27e1d5f27237d2fb19edefe.tar.xz | |
Merge branch 'for-6.10/hid-bpf' into for-linus
- updates to HID-BPF infrastructure, with some of the specific
fixes (e.g. rdesc fixups) abstracted into separate BPF programs
for consumption by libevdev/udev-hid-bpf (Benjamin Tissoires)
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hid.h | 6 | ||||
| -rw-r--r-- | include/linux/hid_bpf.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index b12cb1c8e682..8e06d89698e6 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -474,9 +474,9 @@ struct hid_usage { __s8 wheel_factor; /* 120/resolution_multiplier */ __u16 code; /* input driver code */ __u8 type; /* input driver type */ - __s8 hat_min; /* hat switch fun */ - __s8 hat_max; /* ditto */ - __s8 hat_dir; /* ditto */ + __s16 hat_min; /* hat switch fun */ + __s16 hat_max; /* ditto */ + __s16 hat_dir; /* ditto */ __s16 wheel_accumulated; /* hi-res wheel */ }; diff --git a/include/linux/hid_bpf.h b/include/linux/hid_bpf.h index 7118ac28d468..17b08f500098 100644 --- a/include/linux/hid_bpf.h +++ b/include/linux/hid_bpf.h @@ -103,6 +103,9 @@ struct hid_bpf_ops { unsigned char reportnum, __u8 *buf, size_t len, enum hid_report_type rtype, enum hid_class_request reqtype); + int (*hid_hw_output_report)(struct hid_device *hdev, __u8 *buf, size_t len); + int (*hid_input_report)(struct hid_device *hid, enum hid_report_type type, + u8 *data, u32 size, int interrupt); struct module *owner; const struct bus_type *bus_type; }; |
