Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/input.c

    rc928bb7 rfeeac0d  
    440440        kbd_add_dev(&msim_port, &stty_ctl);
    441441#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
    448442#if defined(UARCH_ppc32)
    449443        kbd_add_dev(&adb_port, &apple_ctl);
     
    476470{
    477471        /* 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) {
    482473                /* Yield port */
    483474                if (kdev->port_ops != NULL)
     
    489480{
    490481        /* 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) {
    495483                /* Reclaim port */
    496484                if (kdev->port_ops != NULL)
     
    527515               
    528516                /* 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) {
    532518                        if (kdev->svc_id == svcs[i]) {
    533519                                already_known = true;
     
    580566               
    581567                /* 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) {
    585569                        if (mdev->svc_id == svcs[i]) {
    586570                                already_known = true;
Note: See TracChangeset for help on using the changeset viewer.