Loading drivers/thermal/thermal_core.c +14 −0 Original line number Diff line number Diff line Loading @@ -326,6 +326,20 @@ int thermal_sensor_trip(struct thermal_zone_device *tz, } EXPORT_SYMBOL(thermal_sensor_trip); int sensor_get_temp(uint32_t sensor_id, long *temp) { struct sensor_info *sensor = get_sensor(sensor_id); int ret = 0; if (!sensor) return -ENODEV; ret = sensor->tz->ops->get_temp(sensor->tz, temp); return ret; } EXPORT_SYMBOL(sensor_get_temp); int sensor_activate_trip(uint32_t sensor_id, struct sensor_threshold *threshold, bool enable) { Loading include/linux/thermal.h +1 −0 Original line number Diff line number Diff line Loading @@ -282,6 +282,7 @@ struct thermal_instance *get_thermal_instance(struct thermal_zone_device *, void thermal_cdev_update(struct thermal_cooling_device *); void thermal_notify_framework(struct thermal_zone_device *, int); int sensor_get_temp(uint32_t sensor_id, long *temp); int sensor_get_id(char *name); int sensor_set_trip(uint32_t sensor_id, struct sensor_threshold *threshold); int sensor_cancel_trip(uint32_t sensor_id, struct sensor_threshold *threshold); Loading Loading
drivers/thermal/thermal_core.c +14 −0 Original line number Diff line number Diff line Loading @@ -326,6 +326,20 @@ int thermal_sensor_trip(struct thermal_zone_device *tz, } EXPORT_SYMBOL(thermal_sensor_trip); int sensor_get_temp(uint32_t sensor_id, long *temp) { struct sensor_info *sensor = get_sensor(sensor_id); int ret = 0; if (!sensor) return -ENODEV; ret = sensor->tz->ops->get_temp(sensor->tz, temp); return ret; } EXPORT_SYMBOL(sensor_get_temp); int sensor_activate_trip(uint32_t sensor_id, struct sensor_threshold *threshold, bool enable) { Loading
include/linux/thermal.h +1 −0 Original line number Diff line number Diff line Loading @@ -282,6 +282,7 @@ struct thermal_instance *get_thermal_instance(struct thermal_zone_device *, void thermal_cdev_update(struct thermal_cooling_device *); void thermal_notify_framework(struct thermal_zone_device *, int); int sensor_get_temp(uint32_t sensor_id, long *temp); int sensor_get_id(char *name); int sensor_set_trip(uint32_t sensor_id, struct sensor_threshold *threshold); int sensor_cancel_trip(uint32_t sensor_id, struct sensor_threshold *threshold); Loading