[PATCH evemu 02/10] make-event-names: ignore ioctl defines

Peter Hutterer peter.hutterer at who-t.net
Mon Aug 4 21:01:44 PDT 2014


These were currently filtered a few lines below when a ValueError occured
converting them to the integer value. In a few patches, that part will change,
so let's ignore ioctl defines explicitly.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/make-event-names.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/make-event-names.py b/src/make-event-names.py
index fde33e9..fce39a3 100755
--- a/src/make-event-names.py
+++ b/src/make-event-names.py
@@ -99,6 +99,8 @@ def parse_define(bits, line):
 
 	if name in blacklist:
 		return
+	if name.startswith("EVIOC"):
+		return
 
 	try:
 		value = int(m.group(2), 0)
-- 
1.9.3



More information about the Input-tools mailing list