From: Harvey Harrison Date: Tue, 6 Jan 2009 22:41:37 +0000 (-0800) Subject: ibmpex: add endian annotation to extract_data() helper X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=29041b4b1a3d68192eef7613703669f5c7b01d0c;p=openwrt%2Fstaging%2Fblogic.git ibmpex: add endian annotation to extract_data() helper Signed-off-by: Harvey Harrison Cc: "Darrick J. Wong" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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