diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2009-01-07 01:41:37 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-07 02:59:18 +0300 |
commit | 29041b4b1a3d68192eef7613703669f5c7b01d0c (patch) | |
tree | bdc31df5dc6f075a9fbbf35d9ccf933e25288af3 /drivers/hwmon | |
parent | 85e0e5ad1ef8cebd010bbd7047418a47ca9c5ead (diff) | |
download | linux-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>
Diffstat (limited to 'drivers/hwmon')
-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 |