Changes in uspace/srv/hid/input/port/chardev.c [7aa94304:f9b2cb4c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/chardev.c
r7aa94304 rf9b2cb4c 59 59 /** List of devices to try connecting to. */ 60 60 static const char *in_devs[] = { 61 /** S3C24xx UART - Openmoko debug console */ 62 "char/s3c24xx_uart", 63 /** Ski console, MSIM console, Sun4v console */ 64 "devices/\\hw\\console\\a" 61 "char/s3c24xx_uart" 65 62 }; 66 63 … … 75 72 76 73 kbd_dev = kdev; 77 again: 74 78 75 for (i = 0; i < num_devs; i++) { 79 76 rc = loc_service_get_id(in_devs[i], &service_id, 0); … … 83 80 84 81 if (i >= num_devs) { 85 /* XXX This is just a hack. */ 86 printf("%s: No input device found, sleep for retry.\n", NAME); 87 async_usleep(1000 * 1000); 88 goto again; 82 printf("%s: Could not find any suitable input device\n", NAME); 83 return -1; 89 84 } 90 85 … … 115 110 } 116 111 117 printf("%s: Found input device '%s'\n", NAME, in_devs[i]);118 112 return 0; 119 113 }
Note:
See TracChangeset
for help on using the changeset viewer.