Lines Matching defs:sc_sensors
105 struct ad7417_sensor *sc_sensors;
306 * and we have allocated memory for sc->sc_sensors, we fill in the properties.
326 if (sc->sc_sensors != NULL)
327 strcpy(sc->sc_sensors[i].therm.name, location + len);
332 if (sc->sc_sensors == NULL)
342 sc->sc_sensors[i].type = ADC7417_TEMP_SENSOR;
344 sc->sc_sensors[i].type = ADC7417_ADC_SENSOR;
353 sc->sc_sensors[j].id = id[j];
358 sc->sc_sensors[j].therm.zone = id[j];
362 sc->sc_sensors[j].dev = dev;
365 if (strstr(sc->sc_sensors[j].therm.name, "DIODE TEMP")
367 sc->sc_sensors[j].type = ADC7417_TEMP_SENSOR;
368 sc->sc_sensors[j].therm.read =
371 sc->sc_sensors[j].therm.read =
375 if (sc->sc_sensors[j].type != ADC7417_TEMP_SENSOR)
379 sc->sc_sensors[j].therm.target_temp = 500 + ZERO_C_TO_K;
380 sc->sc_sensors[j].therm.max_temp = 900 + ZERO_C_TO_K;
382 pmac_thermal_sensor_register(&sc->sc_sensors[j].therm);
411 sc->sc_sensors = malloc (sc->sc_nsensors * sizeof(struct ad7417_sensor),
424 for (j = 0; j < strlen(sc->sc_sensors[i].therm.name); j++) {
426 tolower(sc->sc_sensors[i].therm.name[j]);
437 if (sc->sc_sensors[i].type == ADC7417_TEMP_SENSOR) {
448 sc->sc_sensors[i].type == ADC7417_TEMP_SENSOR ?
456 sc->sc_sensors[i].therm.name,
457 sc->sc_sensors[i].id,
458 sc->sc_sensors[i].type);
619 sens = &sc->sc_sensors[arg2];