diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2009-01-06 23:41:37 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-07 00:59:18 +0100 |
commit | 29041b4b1a3d68192eef7613703669f5c7b01d0c (patch) | |
tree | bdc31df5dc6f075a9fbbf35d9ccf933e25288af3 | |
parent | hwmon: applesmc: Add support for MacBook Air 2 (diff) | |
download | linux-29041b4b1a3d68192eef7613703669f5c7b01d0c.tar.xz linux-29041b4b1a3d68192eef7613703669f5c7b01d0c.zip |
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>
-rw-r--r-- | drivers/hwmon/ibmpex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ibmpex.c b/drivers/hwmon/ibmpex.c index 537d9fb2ff88..a36363312f2f 100644 --- a/drivers/hwmon/ibmpex.c +++ b/drivers/hwmon/ibmpex.c @@ -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 |