Skip to content
Commit ac778e62 authored by Florian Fainelli's avatar Florian Fainelli Committed by Sudeep Holla
Browse files

hwmon: scmi: Scale values to target desired HWMON units



If the SCMI firmware implementation is reporting values in a scale that
is different from the HWMON units, we need to scale up or down the value
according to how far apart they are.

Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
[sudeep.holla: added check of scale = 0 for early exit in scmi_hwmon_scale]
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 0b673b64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment