summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/opal.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-03-28 16:34:10 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-04-09 12:52:49 +1000
commit9000c17dc0f9c910267d2661225c9d33a227b27e (patch)
tree66b0baf3e320446da2c335c53f6dc9be75d52e15 /arch/powerpc/include/asm/opal.h
parentbb4398e1de739a13e06589fc04cbb2267ba59800 (diff)
powerpc/powernv: Fix endian issues with sensor code
One OPAL call and one device tree property needed byte swapping. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/opal.h')
-rw-r--r--arch/powerpc/include/asm/opal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h
index fc73661c20f..a13ab397edd 100644
--- a/arch/powerpc/include/asm/opal.h
+++ b/arch/powerpc/include/asm/opal.h
@@ -874,8 +874,7 @@ int64_t opal_get_param(uint64_t token, uint32_t param_id, uint64_t buffer,
size_t length);
int64_t opal_set_param(uint64_t token, uint32_t param_id, uint64_t buffer,
size_t length);
-int64_t opal_sensor_read(uint32_t sensor_hndl, int token,
- uint32_t *sensor_data);
+int64_t opal_sensor_read(uint32_t sensor_hndl, int token, __be32 *sensor_data);
/* Internal functions */
extern int early_init_dt_scan_opal(unsigned long node, const char *uname, int depth, void *data);