Commit 61288a58 authored by Vojtech Pavlik's avatar Vojtech Pavlik

hid-input.c: Back out a (wrong) find_next_zero_bit() patch from Arnaldo Carvalho de Melo.

parent f4b80c7d
......@@ -348,7 +348,7 @@ static void hidinput_configure_usage(struct hid_device *device, struct hid_field
set_bit(usage->type, input->evbit);
while (usage->code <= max && test_and_set_bit(usage->code, bit)) {
usage->code = find_next_zero_bit(bit, usage->code, max + 1);
usage->code = find_next_zero_bit(bit, max + 1, usage->code);
}
if (usage->code > max) return;
......
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