diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2017-12-15 12:51:00 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-02-21 11:58:19 +1100 |
commit | fa3494602a3e3effe9f222193453d67ccc0c0606 (patch) | |
tree | 730c36fc14fb245578927ca98f11287a16833cde /include/dts.h | |
parent | 7f4c8e8ce0b78ca046643d7f4f63d81f4fd11746 (diff) | |
download | blackbird-skiboot-fa3494602a3e3effe9f222193453d67ccc0c0606.tar.gz blackbird-skiboot-fa3494602a3e3effe9f222193453d67ccc0c0606.zip |
sensors: Support reading u64 sensor values
This patch adds support to read u64 sensor values. This also adds
changes to the core and the backend implementation code to make this
API as the base call. Host can use this new API to read sensors
upto 64bits.
This adds a list to store the pointer to the kernel u32 buffer, for
older kernels making async sensor u32 reads.
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/dts.h')
-rw-r--r-- | include/dts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dts.h b/include/dts.h index 17e2e15e..30188acc 100644 --- a/include/dts.h +++ b/include/dts.h @@ -19,7 +19,7 @@ #include <stdint.h> -extern int64_t dts_sensor_read(u32 sensor_hndl, int token, u32 *sensor_data); +extern int64_t dts_sensor_read(u32 sensor_hndl, int token, u64 *sensor_data); extern bool dts_sensor_create_nodes(struct dt_node *sensors); #endif /* __DTS_H */ |