diff options
author | Florian Fainelli | 2019-05-08 20:46:35 +0200 |
---|---|---|
committer | Sudeep Holla | 2019-06-12 13:29:51 +0200 |
commit | ac778e62634eee0685b622605b063a49edf2f2d1 (patch) | |
tree | e18d2d770df4a45f580d70dfb03ab4352bf4292b /drivers/gpu/drm/tinydrm/Makefile | |
parent | firmware: arm_scmi: fetch and store sensor scale (diff) | |
download | kernel-qcow2-linux-ac778e62634eee0685b622605b063a49edf2f2d1.tar.gz kernel-qcow2-linux-ac778e62634eee0685b622605b063a49edf2f2d1.tar.xz kernel-qcow2-linux-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/gpu/drm/tinydrm/Makefile')
0 files changed, 0 insertions, 0 deletions