- int result = 0, dev_id = 0, is_down, result_menu;
-#ifdef IN_EVDEV
- void **data;
- int i, id = 0, count = 0;
+ int result = -1, dev_id = 0, is_down, result_menu;
+ int fds_hnds[IN_MAX_DEVS];
+ int i, ret, count = 0;
+ in_drv_t *drv = NULL;
+ unsigned int ticks;
+
+ if (in_have_async_devs) {
+ result = in_update_kc_async(&dev_id, &is_down, timeout_ms);
+ if (result == -1)
+ return -1;
+ drv = &DRV(in_devices[dev_id].drv_id);
+ goto finish;
+ }
+
+ ticks = plat_get_ticks_ms();
+
+ for (i = 0; i < in_dev_count; i++) {
+ if (in_devices[i].probed)
+ fds_hnds[count++] = in_devices[i].drv_fd_hnd;
+ }