hwmon: (lm95245) Make temp2_crit_hyst read-only
commita41a8927e7adfa5de607d5bd43fa8fbbef44d6f2
authorGuenter Roeck <linux@roeck-us.net>
Sat, 22 Feb 2014 16:17:34 +0000 (22 08:17 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 3 Mar 2014 16:01:06 +0000 (3 08:01 -0800)
tree04582a857933f67aacc261595530049f51a64634
parent7276d55e62f79f2b81d2c414e48de43edea5aa78
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