summaryrefslogtreecommitdiff
path: root/drivers/hwmon/w83791d.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2013-12-12 07:05:32 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-20 15:48:53 (GMT)
commit51f3ae937ca288978ab3c63ec2ae48d687cb3347 (patch)
tree1ae492834880aa22c353a83ceb5648be00684ad7 /drivers/hwmon/w83791d.c
parentedf0afdbe45326982177055e7551b3b7e7d1e8eb (diff)
downloadlinux-fsl-qoriq-51f3ae937ca288978ab3c63ec2ae48d687cb3347.tar.xz
hwmon: (w83l768ng) Fix fan speed control range
commit 33a7ab91d509fa33b4bcd3ce0038cc80298050da upstream. The W83L786NG stores the fan speed on 4 bits while the sysfs interface uses a 0-255 range. Thus the driver should scale the user input down to map it to the device range, and scale up the value read from the device before presenting it to the user. The reserved register nibble should be left unchanged. Signed-off-by: Jean Delvare <khali@linux-fr.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon/w83791d.c')
0 files changed, 0 insertions, 0 deletions