Lines Matching defs:sensor

85 	/* The sensor id of chip correspond to the ADC channel */
100 /* Per-sensor methods */
114 * struct rockchip_thermal_sensor - hold the information of thermal sensor
117 * @id: identifier of the thermal sensor
257 * code to temperature mapping of the temperature sensor is a piece wise linear
653 * assume that the relationship between sensor readings and
1353 rockchip_thermal_toggle_sensor(struct rockchip_thermal_sensor *sensor, bool on)
1355 struct thermal_zone_device *tzd = sensor->tzd;
1381 struct rockchip_thermal_sensor *sensor = thermal_zone_device_priv(tz);
1382 struct rockchip_thermal_data *thermal = sensor->thermal;
1385 dev_dbg(&thermal->pdev->dev, "%s: sensor %d: low: %d, high %d\n",
1386 __func__, sensor->id, low, high);
1389 sensor->id, thermal->regs, high);
1394 struct rockchip_thermal_sensor *sensor = thermal_zone_device_priv(tz);
1395 struct rockchip_thermal_data *thermal = sensor->thermal;
1396 const struct rockchip_tsadc_chip *tsadc = sensor->thermal->chip;
1400 sensor->id, thermal->regs, out_temp);
1475 struct rockchip_thermal_sensor *sensor,
1489 sensor->thermal = thermal;
1490 sensor->id = id;
1491 sensor->tzd = devm_thermal_of_zone_register(&pdev->dev, id, sensor,
1493 if (IS_ERR(sensor->tzd)) {
1494 error = PTR_ERR(sensor->tzd);
1495 dev_err(&pdev->dev, "failed to register sensor %d: %d\n",
1577 "failed to register sensor[%d].\n", i);
1595 "failed to register sensor %d with hwmon: %d\n",
1610 struct rockchip_thermal_sensor *sensor = &thermal->sensors[i];
1612 thermal_remove_hwmon_sysfs(sensor->tzd);
1613 rockchip_thermal_toggle_sensor(sensor, false);