Messages in this thread Patch in this message | | | Subject | [PATCH] ibmpex: trivial endian annotation in extract_data helper | From | Harvey Harrison <> | Date | Fri, 24 Oct 2008 16:44:58 -0700 |
| |
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@gmail.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
| |