diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2019-05-08 21:46:35 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2019-06-12 14:29:51 +0300 |
commit | ac778e62634eee0685b622605b063a49edf2f2d1 (patch) | |
tree | e18d2d770df4a45f580d70dfb03ab4352bf4292b /drivers/firmware | |
parent | 0b673b6486998061b0489b09447ebe8452da0146 (diff) | |
download | linux-ac778e62634eee0685b622605b063a49edf2f2d1.tar.xz |
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