Skip to content
Commit 0b673b64 authored by Florian Fainelli's avatar Florian Fainelli Committed by Sudeep Holla
Browse files

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: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
[sudeep.holla: update bitfield values as per specification]
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent c0759b9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment