mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-04-03 17:20:36 +02:00
include: sync with kernel 6.19
SND_PROFILE_* has the same prefix as SND_* so we need to explicitly ignore those in our event-name script. Part-of: <https://gitlab.freedesktop.org/libevdev/libevdev/-/merge_requests/132>
This commit is contained in:
parent
be44b6e6a8
commit
6ce9eb3162
3 changed files with 23 additions and 1 deletions
|
|
@ -891,6 +891,7 @@
|
|||
|
||||
#define ABS_VOLUME 0x20
|
||||
#define ABS_PROFILE 0x21
|
||||
#define ABS_SND_PROFILE 0x22
|
||||
|
||||
#define ABS_MISC 0x28
|
||||
|
||||
|
|
@ -1000,4 +1001,12 @@
|
|||
#define SND_MAX 0x07
|
||||
#define SND_CNT (SND_MAX+1)
|
||||
|
||||
/*
|
||||
* ABS_SND_PROFILE values
|
||||
*/
|
||||
|
||||
#define SND_PROFILE_SILENT 0x00
|
||||
#define SND_PROFILE_VIBRATE 0x01
|
||||
#define SND_PROFILE_RING 0x02
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -891,6 +891,7 @@
|
|||
|
||||
#define ABS_VOLUME 0x20
|
||||
#define ABS_PROFILE 0x21
|
||||
#define ABS_SND_PROFILE 0x22
|
||||
|
||||
#define ABS_MISC 0x28
|
||||
|
||||
|
|
@ -1000,4 +1001,12 @@
|
|||
#define SND_MAX 0x07
|
||||
#define SND_CNT (SND_MAX+1)
|
||||
|
||||
/*
|
||||
* ABS_SND_PROFILE values
|
||||
*/
|
||||
|
||||
#define SND_PROFILE_SILENT 0x00
|
||||
#define SND_PROFILE_VIBRATE 0x01
|
||||
#define SND_PROFILE_RING 0x02
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -44,6 +44,10 @@ duplicates = [
|
|||
"REP_MAX",
|
||||
]
|
||||
|
||||
ignore_prefixes = [
|
||||
"SND_PROFILE_",
|
||||
]
|
||||
|
||||
btn_additional = [
|
||||
[0, "BTN_A"],
|
||||
[0, "BTN_B"],
|
||||
|
|
@ -189,7 +193,7 @@ def parse_define(bits, line):
|
|||
return
|
||||
|
||||
for prefix in prefixes:
|
||||
if not name.startswith(prefix):
|
||||
if not name.startswith(prefix) or any(name.startswith(p) for p in ignore_prefixes):
|
||||
continue
|
||||
|
||||
if name.endswith("_MAX"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue