hwmon: (emc1403) fix inverted store_hyst()
authorJosef Gajdusek <atx@atx.name>
Sun, 11 May 2014 12:40:44 +0000 (14:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:11 +0000 (10:28 -0700)
commit0b86a50c92e0118117224d57a9b4aa79d33d98b0
tree6ad4e27d151a7468470ff380f63f7e42955efa01
parentf35f0047951663702d21e430c9e986a22c4ddd69
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/emc1403.c