hwmon: (max31790) Set correct PWM value
authorAlex Hemme <ahemme@cisco.com>
Tue, 7 Mar 2017 19:38:29 +0000 (14:38 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 22 Mar 2017 07:18:20 +0000 (00:18 -0700)
commitdd7406dd334a98ada3ff5371847a3eeb4ba16313
tree3b9e729931054dc961a422629086ba6011fcb243
parent97da3854c526d3a6ee05c849c96e48d21527606c
hwmon: (max31790) Set correct PWM value

Traced fans not spinning to incorrect PWM value being written.
The passed in value was written instead of the calulated value.

Fixes: 54187ff9d766 ("hwmon: (max31790) Convert to use new hwmon registration API")
Signed-off-by: Alex Hemme <ahemme@cisco.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max31790.c