input.c (f1f76afd71e0f17af9a35fcb649f4bab53304a4d) | input.c (ddc5d3414593e4d7ad7fbd33e7f7517fcc234544) |
---|---|
1/* 2 * The input core 3 * 4 * Copyright (c) 1999-2002 Vojtech Pavlik 5 */ 6 7/* 8 * This program is free software; you can redistribute it and/or modify it --- 272 unchanged lines hidden (view full) --- 281 282static struct input_device_id *input_match_device(struct input_device_id *id, struct input_dev *dev) 283{ 284 int i; 285 286 for (; id->flags || id->driver_info; id++) { 287 288 if (id->flags & INPUT_DEVICE_ID_MATCH_BUS) | 1/* 2 * The input core 3 * 4 * Copyright (c) 1999-2002 Vojtech Pavlik 5 */ 6 7/* 8 * This program is free software; you can redistribute it and/or modify it --- 272 unchanged lines hidden (view full) --- 281 282static struct input_device_id *input_match_device(struct input_device_id *id, struct input_dev *dev) 283{ 284 int i; 285 286 for (; id->flags || id->driver_info; id++) { 287 288 if (id->flags & INPUT_DEVICE_ID_MATCH_BUS) |
289 if (id->id.bustype != dev->id.bustype) | 289 if (id->bustype != dev->id.bustype) |
290 continue; 291 292 if (id->flags & INPUT_DEVICE_ID_MATCH_VENDOR) | 290 continue; 291 292 if (id->flags & INPUT_DEVICE_ID_MATCH_VENDOR) |
293 if (id->id.vendor != dev->id.vendor) | 293 if (id->vendor != dev->id.vendor) |
294 continue; 295 296 if (id->flags & INPUT_DEVICE_ID_MATCH_PRODUCT) | 294 continue; 295 296 if (id->flags & INPUT_DEVICE_ID_MATCH_PRODUCT) |
297 if (id->id.product != dev->id.product) | 297 if (id->product != dev->id.product) |
298 continue; 299 300 if (id->flags & INPUT_DEVICE_ID_MATCH_VERSION) | 298 continue; 299 300 if (id->flags & INPUT_DEVICE_ID_MATCH_VERSION) |
301 if (id->id.version != dev->id.version) | 301 if (id->version != dev->id.version) |
302 continue; 303 304 MATCH_BIT(evbit, EV_MAX); 305 MATCH_BIT(keybit, KEY_MAX); 306 MATCH_BIT(relbit, REL_MAX); 307 MATCH_BIT(absbit, ABS_MAX); 308 MATCH_BIT(mscbit, MSC_MAX); 309 MATCH_BIT(ledbit, LED_MAX); --- 787 unchanged lines hidden --- | 302 continue; 303 304 MATCH_BIT(evbit, EV_MAX); 305 MATCH_BIT(keybit, KEY_MAX); 306 MATCH_BIT(relbit, REL_MAX); 307 MATCH_BIT(absbit, ABS_MAX); 308 MATCH_BIT(mscbit, MSC_MAX); 309 MATCH_BIT(ledbit, LED_MAX); --- 787 unchanged lines hidden --- |