summaryrefslogtreecommitdiff
path: root/include/linux/scpi_protocol.h
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2016-01-14 17:58:02 +0000
committerSudeep Holla <sudeep.holla@arm.com>2016-02-16 09:26:27 +0000
commit2e8741599cf128ea27674d9ae93b46e847f820b4 (patch)
treec5d67204b4ec905d85667bb67bc4f776f830327c /include/linux/scpi_protocol.h
parent3bdd884371b6fe68bb144aa4661d6a774a5417f1 (diff)
downloadlwn-2e8741599cf128ea27674d9ae93b46e847f820b4.tar.gz
lwn-2e8741599cf128ea27674d9ae93b46e847f820b4.zip
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>
Diffstat (limited to 'include/linux/scpi_protocol.h')
-rw-r--r--include/linux/scpi_protocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/scpi_protocol.h b/include/linux/scpi_protocol.h
index 72ce932c69b2..ecd248d46281 100644
--- a/include/linux/scpi_protocol.h
+++ b/include/linux/scpi_protocol.h
@@ -68,7 +68,7 @@ struct scpi_ops {
struct scpi_dvfs_info *(*dvfs_get_info)(u8);
int (*sensor_get_capability)(u16 *sensors);
int (*sensor_get_info)(u16 sensor_id, struct scpi_sensor_info *);
- int (*sensor_get_value)(u16, u32 *);
+ int (*sensor_get_value)(u16, u64 *);
};
#if IS_REACHABLE(CONFIG_ARM_SCPI_PROTOCOL)