firmware: arm_scpi: add support for 64-bit sensor values
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 14 Jan 2016 17:58:02 +0000 (17:58 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 16 Feb 2016 09:26:27 +0000 (09:26 +0000)
commit2e8741599cf128ea27674d9ae93b46e847f820b4
treec5d67204b4ec905d85667bb67bc4f776f830327c
parent3bdd884371b6fe68bb144aa4661d6a774a5417f1
firmware: arm_scpi: add support for 64-bit sensor values

SCPI specification version 1.1 extended the sensor from 32-bit to 64-bit
values in order to accommodate new sensor class with 64-bit requirements

Since the SCPI driver sets the higher 32-bit for older protocol version
to zeros, there's no need to explicitly check the SCPI protocol version
and the backward compatibility is maintainted.

Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Punit Agrawal <punit.agrawal@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scpi.c
drivers/hwmon/scpi-hwmon.c
include/linux/scpi_protocol.h