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:
parent
85e0e5ad1e
commit
29041b4b1a
|
@ -40,7 +40,7 @@
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user