hwmon: (adm1025) Fix vrm write operation
authorAxel Lin <axel.lin@ingics.com>
Wed, 6 Aug 2014 00:19:43 +0000 (08:19 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 6 Aug 2014 02:44:36 +0000 (19:44 -0700)
commit9c8ae7287a51d0fdc2e3547068afccfc4880e902
treed8c9a0b7de51defda9f88307496f6fb17fa20998
parenteeeafd384f2f1709d48ba00c807e86d4890cf6b5
hwmon: (adm1025) Fix vrm write operation

vrm is an u8, so the written value needs to be limited to [0, 255].

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adm1025.c