summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2010-12-24 12:54:57 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2010-12-24 06:07:22 -0800
commit34e2812f44d617145dc099d68f1af30fdc11751f (patch)
tree6109c198d8d8e60d06b7922837ea82e1c57a0728
parentde967036c414c3b9eddce48c092379cb30adb7bf (diff)
hwmon: nct1008: platform data to set offset register
Bug 769337 Change-Id: I61b958bbb33e548aa975844bf67e9e18ed640668 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/14224 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r--include/linux/i2c/nct1008.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/i2c/nct1008.h b/include/linux/i2c/nct1008.h
index b38be540ff06..a037f8a9b2ed 100644
--- a/include/linux/i2c/nct1008.h
+++ b/include/linux/i2c/nct1008.h
@@ -25,8 +25,8 @@
/* config params */
#define NCT1008_CONFIG_ALERT_DISABLE 0x80
-#define NCT1008_CONFIG_RUN_STANDBY 0x40
-#define NCT1008_CONFIG_ALERT_THERM2 0x20
+#define NCT1008_CONFIG_RUN_STANDBY 0x40
+#define NCT1008_CONFIG_ALERT_THERM2 0x20
#define NCT1008_CONFIG_ENABLE_EXTENDED 0x04
struct nct1008_platform_data {
@@ -38,6 +38,9 @@ struct nct1008_platform_data {
/* cpu shut down threshold */
int thermal_threshold;
+
+ /* temperature offset */
+ int offset;
};
#endif /* _LINUX_NCT1008_H */