Commit a064d5bd authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

ibmaem endianness annotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 64e9159f
...@@ -189,8 +189,8 @@ static struct aem_iana_id system_x_id = { ...@@ -189,8 +189,8 @@ static struct aem_iana_id system_x_id = {
struct aem_find_firmware_req { struct aem_find_firmware_req {
struct aem_iana_id id; struct aem_iana_id id;
u8 rsvd; u8 rsvd;
u16 index; __be16 index;
u16 module_type_id; __be16 module_type_id;
} __packed; } __packed;
struct aem_find_firmware_resp { struct aem_find_firmware_resp {
...@@ -202,7 +202,7 @@ struct aem_find_firmware_resp { ...@@ -202,7 +202,7 @@ struct aem_find_firmware_resp {
struct aem_find_instance_req { struct aem_find_instance_req {
struct aem_iana_id id; struct aem_iana_id id;
u8 instance_number; u8 instance_number;
u16 module_type_id; __be16 module_type_id;
} __packed; } __packed;
struct aem_find_instance_resp { struct aem_find_instance_resp {
...@@ -444,17 +444,17 @@ static int aem_read_sensor(struct aem_data *data, u8 elt, u8 reg, ...@@ -444,17 +444,17 @@ static int aem_read_sensor(struct aem_data *data, u8 elt, u8 reg,
} }
case 2: { case 2: {
u16 *x = buf; u16 *x = buf;
*x = be16_to_cpup((u16 *)rs_resp->bytes); *x = be16_to_cpup((__be16 *)rs_resp->bytes);
break; break;
} }
case 4: { case 4: {
u32 *x = buf; u32 *x = buf;
*x = be32_to_cpup((u32 *)rs_resp->bytes); *x = be32_to_cpup((__be32 *)rs_resp->bytes);
break; break;
} }
case 8: { case 8: {
u64 *x = buf; u64 *x = buf;
*x = be64_to_cpup((u64 *)rs_resp->bytes); *x = be64_to_cpup((__be64 *)rs_resp->bytes);
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment