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