diff options
author | Frank Crawford <frank@crawford.emu.id.au> | 2023-03-18 09:05:43 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 16:08:33 +0200 |
commit | dedbe4c1499cf1b7b0357872cf858221f583bfc0 (patch) | |
tree | 5485f38f169407916d78b3a6041a70736b0c6546 /drivers | |
parent | hwmon: (nct6775) update ASUS WMI monitoring list A520/B360/B460/B550... (diff) | |
download | linux-dedbe4c1499cf1b7b0357872cf858221f583bfc0.tar.xz linux-dedbe4c1499cf1b7b0357872cf858221f583bfc0.zip |
hwmon: (it87) Use voltage scaling macro where appropriate
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/it87.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index e9614eb557d4..f774a0732a7c 100644 --- 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]; |