aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2019-05-08 11:46:35 -0700
committerSudeep Holla <sudeep.holla@arm.com>2019-06-12 12:29:51 +0100
commitac778e62634eee0685b622605b063a49edf2f2d1 (patch)
treee18d2d770df4a45f580d70dfb03ab4352bf4292b /drivers/firmware
parentfirmware: arm_scmi: fetch and store sensor scale (diff)
downloadlinux-dev-ac778e62634eee0685b622605b063a49edf2f2d1.tar.xz
linux-dev-ac778e62634eee0685b622605b063a49edf2f2d1.zip
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: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> [sudeep.holla: added check of scale = 0 for early exit in scmi_hwmon_scale] Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware')
0 files changed, 0 insertions, 0 deletions