diff options
author | Florian Fainelli <[email protected]> | 2019-05-08 11:46:35 -0700 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2019-06-12 12:29:51 +0100 |
commit | ac778e62634eee0685b622605b063a49edf2f2d1 (patch) | |
tree | e18d2d770df4a45f580d70dfb03ab4352bf4292b /net/lapb/lapb_timer.c | |
parent | 0b673b6486998061b0489b09447ebe8452da0146 (diff) |
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 <[email protected]>
Signed-off-by: Florian Fainelli <[email protected]>
[sudeep.holla: added check of scale = 0 for early exit in scmi_hwmon_scale]
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions