Commit bde2a395 authored by Artur Wegele's avatar Artur Wegele Committed by Vojtech Pavlik

input: logical maximum and minimum can have the same value in HID.

parent 189ea5d0
...@@ -215,7 +215,7 @@ static int hid_add_field(struct hid_parser *parser, unsigned report_type, unsign ...@@ -215,7 +215,7 @@ static int hid_add_field(struct hid_parser *parser, unsigned report_type, unsign
return -1; return -1;
} }
if (parser->global.logical_maximum <= parser->global.logical_minimum) { if (parser->global.logical_maximum < parser->global.logical_minimum) {
dbg("logical range invalid %d %d", parser->global.logical_minimum, parser->global.logical_maximum); dbg("logical range invalid %d %d", parser->global.logical_minimum, parser->global.logical_maximum);
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment