diff options
-rw-r--r-- | Documentation/hwmon/lm95245 | 8 | ||||
-rw-r--r-- | drivers/hwmon/lm95245.c | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/Documentation/hwmon/lm95245 b/Documentation/hwmon/lm95245 index cbd8aeab7124..77eaf2812d25 100644 --- a/Documentation/hwmon/lm95245 +++ b/Documentation/hwmon/lm95245 | |||
@@ -24,8 +24,12 @@ is given within a range of -127 to +127.875 degrees. Remote temperatures are | |||
24 | given within a range of -127 to +255 degrees. Resolution depends on | 24 | given within a range of -127 to +255 degrees. Resolution depends on |
25 | temperature input and range. | 25 | temperature input and range. |
26 | 26 | ||
27 | Each sensor has its own critical limit, but the hysteresis is common to all | 27 | Each sensor has its own critical limit. Additionally, there is a relative |
28 | two channels. | 28 | hysteresis value common to both critical limits. To make life easier to |
29 | user-space applications, two absolute values are exported, one for each | ||
30 | channel, but these values are of course linked. Only the local hysteresis | ||
31 | can be set from user-space, and the same delta applies to the remote | ||
32 | hysteresis. | ||
29 | 33 | ||
30 | The lm95245 driver can change its update interval to a fixed set of values. | 34 | The lm95245 driver can change its update interval to a fixed set of values. |
31 | It will round up to the next selectable interval. See the datasheet for exact | 35 | It will round up to the next selectable interval. See the datasheet for exact |
diff --git a/drivers/hwmon/lm95245.c b/drivers/hwmon/lm95245.c index acf36794e7e3..0ae0dfdafdff 100644 --- a/drivers/hwmon/lm95245.c +++ b/drivers/hwmon/lm95245.c | |||
@@ -395,8 +395,7 @@ static SENSOR_DEVICE_ATTR(temp1_crit_alarm, S_IRUGO, show_alarm, NULL, | |||
395 | static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, show_input, NULL, 2); | 395 | static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, show_input, NULL, 2); |
396 | static SENSOR_DEVICE_ATTR(temp2_crit, S_IWUSR | S_IRUGO, show_limit, | 396 | static SENSOR_DEVICE_ATTR(temp2_crit, S_IWUSR | S_IRUGO, show_limit, |
397 | set_limit, 7); | 397 | set_limit, 7); |
398 | static SENSOR_DEVICE_ATTR(temp2_crit_hyst, S_IWUSR | S_IRUGO, show_crit_hyst, | 398 | static SENSOR_DEVICE_ATTR(temp2_crit_hyst, S_IRUGO, show_crit_hyst, NULL, 7); |
399 | set_crit_hyst, 7); | ||
400 | static SENSOR_DEVICE_ATTR(temp2_crit_alarm, S_IRUGO, show_alarm, NULL, | 399 | static SENSOR_DEVICE_ATTR(temp2_crit_alarm, S_IRUGO, show_alarm, NULL, |
401 | STATUS1_RTCRIT); | 400 | STATUS1_RTCRIT); |
402 | static SENSOR_DEVICE_ATTR(temp2_type, S_IWUSR | S_IRUGO, show_type, | 401 | static SENSOR_DEVICE_ATTR(temp2_type, S_IWUSR | S_IRUGO, show_type, |