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>
This commit is contained in:
Harvey Harrison 2009-01-06 14:41:37 -08:00 committed by Linus Torvalds
parent 85e0e5ad1e
commit 29041b4b1a

View file

@ -40,7 +40,7 @@
static inline u16 extract_value(const char *data, int offset) static inline u16 extract_value(const char *data, int offset)
{ {
return be16_to_cpup((u16 *)&data[offset]); return be16_to_cpup((__be16 *)&data[offset]);
} }
#define TEMP_SENSOR 1 #define TEMP_SENSOR 1