Lines Matching refs:sc_sensor
72 struct pmac_therm sc_sensor; member
313 if (OF_getprop(child, "hwsensor-zone", &sc->sc_sensor.zone, in ds1631_start()
315 sc->sc_sensor.zone = 0; in ds1631_start()
317 plen = OF_getprop(child, "hwsensor-location", sc->sc_sensor.name, in ds1631_start()
318 sizeof(sc->sc_sensor.name)); in ds1631_start()
325 plen = OF_getprop(node, "location", sc->sc_sensor.name, in ds1631_start()
326 sizeof(sc->sc_sensor.name)); in ds1631_start()
332 for (i = 0; i < strlen(sc->sc_sensor.name); i++) { in ds1631_start()
333 sysctl_name[i] = tolower(sc->sc_sensor.name[i]); in ds1631_start()
341 if (sc->sc_sensor.zone == 0) { in ds1631_start()
342 sc->sc_sensor.target_temp = 400 + ZERO_C_TO_K; in ds1631_start()
343 sc->sc_sensor.max_temp = 500 + ZERO_C_TO_K; in ds1631_start()
345 sc->sc_sensor.target_temp = 300 + ZERO_C_TO_K; in ds1631_start()
346 sc->sc_sensor.max_temp = 500 + ZERO_C_TO_K; in ds1631_start()
349 sc->sc_sensor.read = in ds1631_start()
351 pmac_thermal_sensor_register(&sc->sc_sensor); in ds1631_start()
353 sprintf(sysctl_desc,"%s %s", sc->sc_sensor.name, "(C)"); in ds1631_start()