Default to a max of -1 for undefined EV_foo bits

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2013-06-05 16:00:56 +10:00
parent dc27c627a7
commit 03fa066aec

View file

@ -74,6 +74,7 @@ def print_map(bits):
print "" print ""
print "static const int ev_max[EV_MAX + 1] = {" print "static const int ev_max[EV_MAX + 1] = {"
print " [0 ... EV_MAX] = -1,"
for prefix in prefixes: for prefix in prefixes:
if prefix == "BTN_" or prefix == "EV_" or prefix == "INPUT_PROP_": if prefix == "BTN_" or prefix == "EV_" or prefix == "INPUT_PROP_":
continue continue