Lines Matching defs:type
58 } type;
113 char type[32];
154 OF_getprop(child, "device_type", type, sizeof(type));
156 if (strcmp(type, "current-sensor") == 0) {
157 sens->type = SMU_CURRENT_SENSOR;
159 } else if (strcmp(type, "temp-sensor") == 0) {
160 sens->type = SMU_TEMP_SENSOR;
162 } else if (strcmp(type, "voltage-sensor") == 0) {
163 sens->type = SMU_VOLTAGE_SENSOR;
165 } else if (strcmp(type, "power-sensor") == 0) {
166 sens->type = SMU_POWER_SENSOR;
183 (sens->type == SMU_TEMP_SENSOR) ? "IK" : "I", sysctl_desc);
185 if (sens->type == SMU_TEMP_SENSOR) {
246 switch (sens->type) {