firmware: arm_scmi: fix bitfield definitions for SENSOR_DESC attributes
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 14 May 2019 16:10:31 +0000 (17:10 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 12 Jun 2019 11:29:10 +0000 (12:29 +0100)
commit430daaf96ad133be5ce7c3a5c60e94247f7c6f71
tree98cfead943b19c504177d57571599b27efd3c2a6
parent0ab2c44def8f6cc637a5fb3ce9766d69d2c289d0
firmware: arm_scmi: fix bitfield definitions for SENSOR_DESC attributes

As per the SCMI specification the bitfields for SENSOR_DESC attributes
are as follows:
attributes_low  [7:0]  Number of trip points supported
attributes_high [15:11] The power-of-10 multiplier in 2's-complement
format that is applied to the sensor units

Looks like the code developed during the draft versions of the
specification slipped through and are wrong with respect to final
released version. Fix them by adjusting the bitfields appropriately.

Fixes: 5179c523c1ea ("firmware: arm_scmi: add initial support for sensor protocol")
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/sensors.c