Commit 29041b4b1a3d68192eef7613703669f5c7b01d0c

Authored by Harvey Harrison
Committed by Linus Torvalds
1 parent 85e0e5ad1e

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/hwmon/ibmpex.c
... ... @@ -40,7 +40,7 @@
40 40  
41 41 static 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 46 #define TEMP_SENSOR 1