projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcd2fbe
)
hwmon: (it87) Use voltage scaling macro where appropriate
author
Frank Crawford
<frank@crawford.emu.id.au>
Sat, 18 Mar 2023 08:05:43 +0000
(19:05 +1100)
committer
Guenter Roeck
<linux@roeck-us.net>
Wed, 19 Apr 2023 14:08:33 +0000
(07:08 -0700)
Apply scaling macro to match the labels for internal voltage sensors.
Signed-off-by: Frank Crawford <frank@crawford.emu.id.au>
Link:
https://lore.kernel.org/r/20230318080543.1226700-3-frank@crawford.emu.id.au
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/it87.c
b/drivers/hwmon/it87.c
index e9614eb557d4eb44e16397419d988ef9a9dac1ad..f774a0732a7c45798c0bf3bef9e4b14d7e8f2660 100644
(file)
--- a/
drivers/hwmon/it87.c
+++ b/
drivers/hwmon/it87.c
@@
-2004,7
+2004,7
@@
static ssize_t show_label(struct device *dev, struct device_attribute *attr,
if (has_vin3_5v(data) && nr == 0)
label = labels[0];
- else if (has_
12mv_adc(data) || has_10_9mv_adc
(data))
+ else if (has_
scaling
(data))
label = labels_it8721[nr];
else
label = labels[nr];