diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2013-06-24 14:26:51 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2013-06-24 14:26:51 +0200 |
commit | 6e56cccc6785b8e4cd05808a100122868b22f21a (patch) | |
tree | 76c52cd594f717885db5114889273f72b7b5638e | |
parent | 1815d04bb84d27fb239e4fad85df6cbf63a03ba9 (diff) |
hwmon: lm95245: add local critical shutdown temp hook
export access to the 'Local Shared OS and T_Crit Limit'
register.
-rw-r--r-- | drivers/hwmon/lm95245.c | 6 | ||||
-rw-r--r-- | include/linux/lm95245.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hwmon/lm95245.c b/drivers/hwmon/lm95245.c index cea5048b1ba7..1b60fe6de776 100644 --- a/drivers/hwmon/lm95245.c +++ b/drivers/hwmon/lm95245.c @@ -317,6 +317,12 @@ void lm95245_set_remote_critical_limit(struct device *dev, int val) } EXPORT_SYMBOL(lm95245_set_remote_critical_limit); +void lm95245_set_local_shared_os__critical_limit(struct device *dev, int val) +{ + thermal_set_limit(dev, val, INDEX_LOCAL_OS_TCRIT_LIMIT); +} +EXPORT_SYMBOL(lm95245_set_local_shared_os__critical_limit); + static ssize_t set_limit(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { diff --git a/include/linux/lm95245.h b/include/linux/lm95245.h index 1b0ddbd82759..ecc7ec57696a 100644 --- a/include/linux/lm95245.h +++ b/include/linux/lm95245.h @@ -32,5 +32,6 @@ void lm95245_get_local_temp(struct device *dev, int *temp); void lm95245_get_remote_temp(struct device *dev, int *temp); void lm95245_set_remote_os_limit(struct device *dev, int temp); void lm95245_set_remote_critical_limit(struct device *dev, int temp); +void lm95245_set_local_shared_os__critical_limit(struct device *dev, int val); #endif /* _LINUX_LM95245_H */ |