hwmon: (lm87) Fix vrm write operation
commitfa642d9d6e502fbdbd1122a6a247c8ad17063a29
authorAxel Lin <axel.lin@ingics.com>
Wed, 6 Aug 2014 00:24:00 +0000 (6 08:24 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 6 Aug 2014 02:44:42 +0000 (5 19:44 -0700)
treebd56997463057d2127fdd6777d70ecf65e668c38
parentdb59ac434230c2d6c051bb314f320ad977e6841d
hwmon: (lm87) 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/lm87.c