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 fixes from Guenter Roeck:
"More fallout from module tests and code inspection.

Fixes to temperature limit write operations in adt7470 driver. Also,
dashes are not allowed in hwmon 'name' attributes. Fix drivers where
necessary"

* tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
hwmon: (adt7470) Fix writes to temperature limit registers
hwmon: (da9055) Don't use dash in the name attribute
hwmon: (da9052) Don't use dash in the name attribute

+5 -5
+3 -3
drivers/hwmon/adt7470.c
··· 515 515 return -EINVAL; 516 516 517 517 temp = DIV_ROUND_CLOSEST(temp, 1000); 518 - temp = clamp_val(temp, 0, 255); 518 + temp = clamp_val(temp, -128, 127); 519 519 520 520 mutex_lock(&data->lock); 521 521 data->temp_min[attr->index] = temp; ··· 549 549 return -EINVAL; 550 550 551 551 temp = DIV_ROUND_CLOSEST(temp, 1000); 552 - temp = clamp_val(temp, 0, 255); 552 + temp = clamp_val(temp, -128, 127); 553 553 554 554 mutex_lock(&data->lock); 555 555 data->temp_max[attr->index] = temp; ··· 826 826 return -EINVAL; 827 827 828 828 temp = DIV_ROUND_CLOSEST(temp, 1000); 829 - temp = clamp_val(temp, 0, 255); 829 + temp = clamp_val(temp, -128, 127); 830 830 831 831 mutex_lock(&data->lock); 832 832 data->pwm_tmin[attr->index] = temp;
+1 -1
drivers/hwmon/da9052-hwmon.c
··· 194 194 struct device_attribute *devattr, 195 195 char *buf) 196 196 { 197 - return sprintf(buf, "da9052-hwmon\n"); 197 + return sprintf(buf, "da9052\n"); 198 198 } 199 199 200 200 static ssize_t show_label(struct device *dev,
+1 -1
drivers/hwmon/da9055-hwmon.c
··· 204 204 struct device_attribute *devattr, 205 205 char *buf) 206 206 { 207 - return sprintf(buf, "da9055-hwmon\n"); 207 + return sprintf(buf, "da9055\n"); 208 208 } 209 209 210 210 static ssize_t show_label(struct device *dev,