[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1224891898.5784.0.camel@brick>
Date: Fri, 24 Oct 2008 16:44:58 -0700
From: Harvey Harrison <harvey.harrison@...il.com>
To: "Darrick J. Wong" <djwong@...ibm.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] ibmpex: trivial endian annotation in extract_data helper
This helper is used in few enough locations that open-coding it
at the call sites may be better than the helper.
Signed-off-by: Harvey Harrison <harvey.harrison@...il.com>
---
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
--
1.6.0.3.729.g6ea410
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists