hwmon: (emc1403) fix inverted store_hyst()
authorJosef Gajdusek <atx@atx.name>
Sun, 11 May 2014 12:40:44 +0000 (14:40 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 9 Jun 2014 12:29:11 +0000 (13:29 +0100)
commit73b674fba353d3e37c1d26d5f5e5a34fa4104a9b
tree02983f638bf99c2d27de359af17fa1e9385dff22
parent25a430154805213ad127c6c165cd46c372a5a4b3
hwmon: (emc1403) fix inverted store_hyst()

commit 17c048fc4bd95efea208a1920f169547d8588f1f upstream.

Attempts to set the hysteresis value to a temperature below the target
limit fails with "write error: Numerical result out of range" due to
an inverted comparison.

Signed-off-by: Josef Gajdusek <atx@atx.name>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
[Guenter Roeck: Updated headline and description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hwmon/emc1403.c