Changes in uspace/srv/hid/input/input.c [c928bb7:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/input.c
rc928bb7 rfeeac0d 440 440 kbd_add_dev(&msim_port, &stty_ctl); 441 441 #endif 442 #if (defined(MACHINE_lgxemul) || defined(MACHINE_bgxemul)) && defined(CONFIG_FB)443 kbd_add_dev(&gxemul_port, &gxe_fb_ctl);444 #endif445 #if defined(MACHINE_lgxemul) || defined(MACHINE_bgxemul) && !defined(CONFIG_FB)446 kbd_add_dev(&gxemul_port, &stty_ctl);447 #endif448 442 #if defined(UARCH_ppc32) 449 443 kbd_add_dev(&adb_port, &apple_ctl); … … 476 470 { 477 471 /* For each keyboard device */ 478 list_foreach(kbd_devs, kdev_link) { 479 kbd_dev_t *kdev = list_get_instance(kdev_link, kbd_dev_t, 480 kbd_devs); 481 472 list_foreach(kbd_devs, kbd_devs, kbd_dev_t, kdev) { 482 473 /* Yield port */ 483 474 if (kdev->port_ops != NULL) … … 489 480 { 490 481 /* For each keyboard device */ 491 list_foreach(kbd_devs, kdev_link) { 492 kbd_dev_t *kdev = list_get_instance(kdev_link, kbd_dev_t, 493 kbd_devs); 494 482 list_foreach(kbd_devs, kbd_devs, kbd_dev_t, kdev) { 495 483 /* Reclaim port */ 496 484 if (kdev->port_ops != NULL) … … 527 515 528 516 /* Determine whether we already know this device. */ 529 list_foreach(kbd_devs, kdev_link) { 530 kbd_dev_t *kdev = list_get_instance(kdev_link, 531 kbd_dev_t, kbd_devs); 517 list_foreach(kbd_devs, kbd_devs, kbd_dev_t, kdev) { 532 518 if (kdev->svc_id == svcs[i]) { 533 519 already_known = true; … … 580 566 581 567 /* Determine whether we already know this device. */ 582 list_foreach(mouse_devs, mdev_link) { 583 mouse_dev_t *mdev = list_get_instance(mdev_link, 584 mouse_dev_t, mouse_devs); 568 list_foreach(mouse_devs, mouse_devs, mouse_dev_t, mdev) { 585 569 if (mdev->svc_id == svcs[i]) { 586 570 already_known = true;
Note:
See TracChangeset
for help on using the changeset viewer.