Lines Matching defs:sc_sensor
74 struct pmac_therm sc_sensor;
317 if (OF_getprop(child, "hwsensor-zone", &sc->sc_sensor.zone,
319 sc->sc_sensor.zone = 0;
321 plen = OF_getprop(child, "hwsensor-location", sc->sc_sensor.name,
322 sizeof(sc->sc_sensor.name));
329 plen = OF_getprop(node, "location", sc->sc_sensor.name,
330 sizeof(sc->sc_sensor.name));
336 for (i = 0; i < strlen(sc->sc_sensor.name); i++) {
337 sysctl_name[i] = tolower(sc->sc_sensor.name[i]);
345 if (sc->sc_sensor.zone == 0) {
346 sc->sc_sensor.target_temp = 400 + ZERO_C_TO_K;
347 sc->sc_sensor.max_temp = 500 + ZERO_C_TO_K;
349 sc->sc_sensor.target_temp = 300 + ZERO_C_TO_K;
350 sc->sc_sensor.max_temp = 500 + ZERO_C_TO_K;
353 sc->sc_sensor.read =
355 pmac_thermal_sensor_register(&sc->sc_sensor);
357 sprintf(sysctl_desc,"%s %s", sc->sc_sensor.name, "(C)");