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.cpp423 const struct dirent *ent_device; in cros_ec_get_sensors_names() local
424 while (ent_device = readdir(iio_dir), ent_device != NULL) { in cros_ec_get_sensors_names()
426 if (ent_device->d_type != DT_LNK) in cros_ec_get_sensors_names()
430 strcat(path_device, ent_device->d_name); in cros_ec_get_sensors_names()
480 cros_ec_get_gesture_names(ent_device->d_name); in cros_ec_get_sensors_names()
482 sensor_info->device_name = strdup(ent_device->d_name); in cros_ec_get_sensors_names()
526 *ring_device_name = strdup(ent_device->d_name); in cros_ec_get_sensors_names()