diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2009-01-06 22:41:37 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 23:59:18 (GMT) |
commit | 29041b4b1a3d68192eef7613703669f5c7b01d0c (patch) | |
tree | bdc31df5dc6f075a9fbbf35d9ccf933e25288af3 | |
parent | 85e0e5ad1ef8cebd010bbd7047418a47ca9c5ead (diff) | |
download | linux-fsl-qoriq-29041b4b1a3d68192eef7613703669f5c7b01d0c.tar.xz |
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 537d9fb..a363633 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 |