From: Dmitry Torokhov Date: Wed, 19 Feb 2025 17:14:23 +0000 (-0800) Subject: Input: remove special handling of id->driver_info when matching X-Git-Tag: io_uring-6.17-20250815~32^2^2~17 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=bf4e6e3331effa91fdf7cac6b5dd7ff4ec18c227;p=linux-block.git 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 --- diff --git a/drivers/input/input.c b/drivers/input/input.c index ec4346f20efd..abd272526303 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -971,7 +971,7 @@ static const struct input_device_id *input_match_device(struct input_handler *ha { const struct input_device_id *id; - for (id = handler->id_table; id->flags || id->driver_info; id++) { + for (id = handler->id_table; id->flags; id++) { if (input_match_device_id(dev, id) && (!handler->match || handler->match(handler, dev))) { return id;