aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2009-01-06 17:41:37 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-06 18:59:18 -0500
commit29041b4b1a3d68192eef7613703669f5c7b01d0c (patch)
treebdc31df5dc6f075a9fbbf35d9ccf933e25288af3
parent85e0e5ad1ef8cebd010bbd7047418a47ca9c5ead (diff)
ibmpex: add endian annotation to extract_data() helper
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: "Darrick J. Wong" <djwong@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/hwmon/ibmpex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ibmpex.c b/drivers/hwmon/ibmpex.c
index 537d9fb2ff88..a36363312f2f 100644
--- a/drivers/hwmon/ibmpex.c
+++ b/drivers/hwmon/ibmpex.c
@@ -40,7 +40,7 @@
40 40
41static inline u16 extract_value(const char *data, int offset) 41static inline u16 extract_value(const char *data, int offset)
42{ 42{
43 return be16_to_cpup((u16 *)&data[offset]); 43 return be16_to_cpup((__be16 *)&data[offset]);
44} 44}
45 45
46#define TEMP_SENSOR 1 46#define TEMP_SENSOR 1