Lines Matching defs:sc_sensor
62 struct pmac_therm sc_sensor;
192 if (OF_getprop(child, "hwsensor-zone", &sc->sc_sensor.zone,
194 sc->sc_sensor.zone = 0;
196 plen = OF_getprop(child, "hwsensor-location", sc->sc_sensor.name,
197 sizeof(sc->sc_sensor.name));
202 for (i = 0; i < strlen(sc->sc_sensor.name); i++) {
203 sysctl_name[i] = tolower(sc->sc_sensor.name[i]);
211 if (sc->sc_sensor.zone == 0) {
212 sc->sc_sensor.target_temp = 500 + ZERO_C_TO_K;
213 sc->sc_sensor.max_temp = 600 + ZERO_C_TO_K;
216 sc->sc_sensor.target_temp = 300 + ZERO_C_TO_K;
217 sc->sc_sensor.max_temp = 600 + ZERO_C_TO_K;
220 sc->sc_sensor.read =
222 pmac_thermal_sensor_register(&sc->sc_sensor);
224 sprintf(sysctl_desc,"%s %s", sc->sc_sensor.name, "(C)");