diff options
Diffstat (limited to 'drivers/misc/ibmasm/i2o.h')
-rw-r--r-- | drivers/misc/ibmasm/i2o.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/misc/ibmasm/i2o.h b/drivers/misc/ibmasm/i2o.h index 958c957a5e75..bf2c738d2b72 100644 --- a/drivers/misc/ibmasm/i2o.h +++ b/drivers/misc/ibmasm/i2o.h | |||
@@ -17,7 +17,7 @@ | |||
17 | * | 17 | * |
18 | * Copyright (C) IBM Corporation, 2004 | 18 | * Copyright (C) IBM Corporation, 2004 |
19 | * | 19 | * |
20 | * Author: Max Asböck <amax@us.ibm.com> | 20 | * Author: Max Asböck <amax@us.ibm.com> |
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | 23 | ||
@@ -26,9 +26,9 @@ struct i2o_header { | |||
26 | u8 version; | 26 | u8 version; |
27 | u8 message_flags; | 27 | u8 message_flags; |
28 | u16 message_size; | 28 | u16 message_size; |
29 | u8 target; | 29 | u8 target; |
30 | u8 initiator_and_target; | 30 | u8 initiator_and_target; |
31 | u8 initiator; | 31 | u8 initiator; |
32 | u8 function; | 32 | u8 function; |
33 | u32 initiator_context; | 33 | u32 initiator_context; |
34 | }; | 34 | }; |
@@ -64,12 +64,12 @@ static inline unsigned short outgoing_message_size(unsigned int data_size) | |||
64 | size = sizeof(struct i2o_header) + data_size; | 64 | size = sizeof(struct i2o_header) + data_size; |
65 | 65 | ||
66 | i2o_size = size / sizeof(u32); | 66 | i2o_size = size / sizeof(u32); |
67 | 67 | ||
68 | if (size % sizeof(u32)) | 68 | if (size % sizeof(u32)) |
69 | i2o_size++; | 69 | i2o_size++; |
70 | 70 | ||
71 | return i2o_size; | 71 | return i2o_size; |
72 | } | 72 | } |
73 | 73 | ||
74 | static inline u32 incoming_data_size(struct i2o_message *i2o_message) | 74 | static inline u32 incoming_data_size(struct i2o_message *i2o_message) |
75 | { | 75 | { |