Lines Matching defs:sc_sensors
85 struct max6690_sensor *sc_sensors;
173 * and we have allocated memory for sc->sc_sensors, we fill in the properties.
192 if (sc->sc_sensors != NULL)
193 strcpy(sc->sc_sensors[i].therm.name, location + len);
198 if (sc->sc_sensors == NULL)
204 sc->sc_sensors[j].id = (id[j] & 0xf);
209 sc->sc_sensors[j].therm.zone = id[j];
213 sc->sc_sensors[j].dev = dev;
215 sc->sc_sensors[j].therm.target_temp = 400 + ZERO_C_TO_K;
216 sc->sc_sensors[j].therm.max_temp = 800 + ZERO_C_TO_K;
218 sc->sc_sensors[j].therm.read =
271 sc->sc_sensors = malloc (sc->sc_nsensors * sizeof(struct max6690_sensor),
284 pmac_thermal_sensor_register(&sc->sc_sensors[i].therm);
288 for (j = 0; j < strlen(sc->sc_sensors[i].therm.name); j++) {
290 tolower(sc->sc_sensors[i].therm.name[j]);
296 sprintf(sysctl_desc,"%s %s", sc->sc_sensors[i].therm.name,
313 sc->sc_sensors[i].therm.name,
314 sc->sc_sensors[i].id);
373 sens = &sc->sc_sensors[arg2];