mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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:
parent
bcd2fbec8a
commit
dedbe4c149
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue