Skip to content

Commit

Permalink
ibmpex: add endian annotation to extract_data() helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Jan 6, 2009
1 parent 85e0e5a commit 29041b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/ibmpex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29041b4

Please sign in to comment.