mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue