Skip to content

Commit bf4e6e3

Browse files
committed
Input: remove special handling of id->driver_info when matching
evdev has switched to match on EV_SYN instead of relying on non-zero driver_info field to allow matching to all devices. Remove special handling from input core. Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 84060ea commit bf4e6e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ static const struct input_device_id *input_match_device(struct input_handler *ha
971971
{
972972
const struct input_device_id *id;
973973

974-
for (id = handler->id_table; id->flags || id->driver_info; id++) {
974+
for (id = handler->id_table; id->flags; id++) {
975975
if (input_match_device_id(dev, id) &&
976976
(!handler->match || handler->match(handler, dev))) {
977977
return id;

0 commit comments

Comments
 (0)