Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging

Pull hwmon fix from Guenter Roeck:
"Fixes to temperature limit and vrm write operations in smsc47m192
driver"

* tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
hwmon: (smsc47m192) Fix temperature limit and vrm write operations

+3 -1
+3 -1
drivers/hwmon/smsc47m192.c
··· 86 86 */ 87 87 static inline s8 TEMP_TO_REG(int val) 88 88 { 89 - return clamp_val(SCALE(val, 1, 1000), -128000, 127000); 89 + return SCALE(clamp_val(val, -128000, 127000), 1, 1000); 90 90 } 91 91 92 92 static inline int TEMP_FROM_REG(s8 val) ··· 384 384 err = kstrtoul(buf, 10, &val); 385 385 if (err) 386 386 return err; 387 + if (val > 255) 388 + return -EINVAL; 387 389 388 390 data->vrm = val; 389 391 return count;