Florian Fainelli 0b673b6486 firmware: arm_scmi: fetch and store sensor scale
In preparation for dealing with scales within the SCMI HWMON driver,
fetch and store the sensor unit scale into the scmi_sensor_info
structure. In order to simplify computations for upper layer, take care
of sign extending the scale to a full 8-bit signed value.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
[sudeep.holla: update bitfield values as per specification]
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2019-06-12 12:29:20 +01:00
..
2019-05-06 17:54:22 -07:00
2019-04-15 10:22:51 +02:00
2019-05-16 08:31:32 -07:00
2019-05-16 08:31:32 -07:00
2017-11-17 20:14:10 -08:00
2017-11-17 20:14:10 -08:00