Re: [PATCH v2 3/3] hwmon: scmi: Scale values to target desired HWMON units

2019-05-07 Thread Guenter Roeck
On Tue, May 07, 2019 at 12:35:04PM -0700, Florian Fainelli wrote: > 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 appart they are. > > Signed-off-by: Florian Fainelli > ---

[PATCH v2 3/3] hwmon: scmi: Scale values to target desired HWMON units

2019-05-07 Thread Florian Fainelli
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 appart they are. Signed-off-by: Florian Fainelli --- drivers/hwmon/scmi-hwmon.c | 30 +- 1 file change