aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon/lm95245
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-02-22 08:17:34 -0800
committerGuenter Roeck <linux@roeck-us.net>2014-03-03 08:01:06 -0800
commita41a8927e7adfa5de607d5bd43fa8fbbef44d6f2 (patch)
tree04582a857933f67aacc261595530049f51a64634 /Documentation/hwmon/lm95245
parenthwmon: (lm95245) Convert to use devm_hwmon_device_register_with_groups (diff)
downloadlinux-dev-a41a8927e7adfa5de607d5bd43fa8fbbef44d6f2.tar.xz
linux-dev-a41a8927e7adfa5de607d5bd43fa8fbbef44d6f2.zip
hwmon: (lm95245) Make temp2_crit_hyst read-only
The hysteresis register is shared among both temperature sensors. This means changing one also affects the other. To avoid confusion, established way to express this is to make only the first instance writable and keep all other instances as read-only. Otherwise users may be confused that changing the second writable value also affects the first, while it is more obvious that a writable value may affect a different read-only value. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'Documentation/hwmon/lm95245')
-rw-r--r--Documentation/hwmon/lm952458
1 files changed, 6 insertions, 2 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
given within a range of -127 to +255 degrees. Resolution depends on
temperature input and range.
-Each sensor has its own critical limit, but the hysteresis is common to all
-two channels.
+Each sensor has its own critical limit. Additionally, there is a relative
+hysteresis value common to both critical limits. To make life easier to
+user-space applications, two absolute values are exported, one for each
+channel, but these values are of course linked. Only the local hysteresis
+can be set from user-space, and the same delta applies to the remote
+hysteresis.
The lm95245 driver can change its update interval to a fixed set of values.
It will round up to the next selectable interval. See the datasheet for exact