Lines Matching defs:sc_sensors
101 struct adt746x_sensor sc_sensors[9];
415 OF_getprop(node, "location", sc->sc_sensors[i].therm.name, 32);
418 sc->sc_sensors[i].type = ADT746X_SENSOR_TEMP;
420 sc->sc_sensors[i].type = ADT746X_SENSOR_VOLT;
422 sc->sc_sensors[i].type = ADT746X_SENSOR_SPEED;
427 sc->sc_sensors[i].reg = reg;
428 sc->sc_sensors[i].id = sensid;
429 OF_getprop(node, "zone", &sc->sc_sensors[i].therm.zone,
430 sizeof(sc->sc_sensors[i].therm.zone));
431 sc->sc_sensors[i].dev = dev;
432 sc->sc_sensors[i].therm.read =
434 if (sc->sc_sensors[i].type == ADT746X_SENSOR_TEMP) {
436 sc->sc_sensors[i].therm.target_temp = 500 + ZERO_C_TO_K;
437 sc->sc_sensors[i].therm.max_temp = 800 + ZERO_C_TO_K;
439 pmac_thermal_sensor_register(&sc->sc_sensors[i].therm);
583 sens = &sc->sc_sensors[arg2];
626 for (j = 0; j < strlen(sc->sc_sensors[i].therm.name); j++) {
627 sysctl_name[j] = tolower(sc->sc_sensors[i].therm.name[j]);
636 if (sc->sc_sensors[i].type == ADT746X_SENSOR_TEMP) {
639 } else if (sc->sc_sensors[i].type == ADT746X_SENSOR_VOLT) {
650 sc->sc_sensors[i].type == ADT746X_SENSOR_TEMP ?
658 sc->sc_sensors[i].therm.name);
660 sc->sc_sensors[i].type,
661 sc->sc_sensors[i].id,
662 sc->sc_sensors[i].reg);