]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm95245) Make temp2_crit_hyst read-only
authorGuenter Roeck <linux@roeck-us.net>
Sat, 22 Feb 2014 16:17:34 +0000 (08:17 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 3 Mar 2014 16:01:06 +0000 (08:01 -0800)
commit7ee7fbbfc6740d0fbcaad88e42b01f62a0ae2aa0
tree04582a857933f67aacc261595530049f51a64634
parent01f4719d0c62c1b3ee0d8475a8a2cf2b770d3e9a
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>
Documentation/hwmon/lm95245
drivers/hwmon/lm95245.c