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>
This commit is contained in:
Frank Crawford 2023-03-18 19:05:43 +11:00 committed by Guenter Roeck
parent bcd2fbec8a
commit dedbe4c149

View file

@ -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];