summaryrefslogtreecommitdiff
path: root/drivers/thermal/int340x_thermal/int340x_thermal_zone.h
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2015-01-28 22:56:48 +0300
committerZhang Rui <rui.zhang@intel.com>2015-01-29 16:02:12 +0300
commit317d9dda0522c18eb230367c88601c2e46cda4f8 (patch)
tree27fb5b40515e4ebf1e99f2f1b73270caaf39acfe /drivers/thermal/int340x_thermal/int340x_thermal_zone.h
parentac586e2d6afb1935246c75f0e27a5c628712dbfa (diff)
downloadlinux-317d9dda0522c18eb230367c88601c2e46cda4f8.tar.xz
Thermal/int340x: LPAT conversion for temperature
When LPAT table is present, we need to convert raw temperature to real temp using LPAT. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/int340x_thermal/int340x_thermal_zone.h')
-rw-r--r--drivers/thermal/int340x_thermal/int340x_thermal_zone.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/thermal/int340x_thermal/int340x_thermal_zone.h b/drivers/thermal/int340x_thermal/int340x_thermal_zone.h
index 11f2f5260c3a..9f38ab72c4bf 100644
--- a/drivers/thermal/int340x_thermal/int340x_thermal_zone.h
+++ b/drivers/thermal/int340x_thermal/int340x_thermal_zone.h
@@ -16,6 +16,8 @@
#ifndef __INT340X_THERMAL_ZONE_H__
#define __INT340X_THERMAL_ZONE_H__
+#include <acpi/acpi_lpat.h>
+
#define INT340X_THERMAL_MAX_ACT_TRIP_COUNT 10
struct active_trip {
@@ -38,6 +40,7 @@ struct int34x_thermal_zone {
struct thermal_zone_device *zone;
struct thermal_zone_device_ops *override_ops;
void *priv_data;
+ struct acpi_lpat_conversion_table *lpat_table;
};
struct int34x_thermal_zone *int340x_thermal_zone_add(struct acpi_device *,