Home
last modified time | relevance | path

Searched refs:ent_device (Results 1 – 2 of 2) sorted by relevance

/device/google/dragon/power/
Dpower_dragon.cpp132 const struct dirent *ent_device; in power_init() local
133 while (ent_device = readdir(iio_activity_dir), ent_device != NULL) { in power_init()
134 if (!strncmp(ent_device->d_name, IIO_DEVICE_PREFIX, strlen(IIO_DEVICE_PREFIX))) { in power_init()
135 iio_activity_device = strdup(ent_device->d_name); in power_init()
/device/google/dragon/sensor_hub/
Dsensors.cpp421 const struct dirent *ent_device; in cros_ec_get_sensors_names() local
422 while (ent_device = readdir(iio_dir), ent_device != NULL) { in cros_ec_get_sensors_names()
424 if (ent_device->d_type != DT_LNK) in cros_ec_get_sensors_names()
428 strcat(path_device, ent_device->d_name); in cros_ec_get_sensors_names()
478 cros_ec_get_gesture_names(ent_device->d_name); in cros_ec_get_sensors_names()
480 sensor_info->device_name = strdup(ent_device->d_name); in cros_ec_get_sensors_names()
524 *ring_device_name = strdup(ent_device->d_name); in cros_ec_get_sensors_names()