summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/operation.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-29 11:42:53 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-08-03 19:57:40 -0700
commitf47c1b023ee55737ab5f6b6f479cab06a5a03ba2 (patch)
treee80563c35312e13ac57c6081b7050c2dfce51142 /drivers/staging/greybus/operation.h
parenta96493560cd16095fd00a936bfa9de8614bab842 (diff)
greybus: operation: Drop alignment attribute from operation message header
The buffers allocated for message header is already 64 bit aligned and we have explicit pad bytes in the header structure, to 64 bit align the operation specific data. And so there is no need to add the aligned attribute to the operation message header. Drop it. Suggested-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Alex Elder <elder@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/operation.h')
-rw-r--r--drivers/staging/greybus/operation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h
index 00189e963a01..1b7cc6a8cc26 100644
--- a/drivers/staging/greybus/operation.h
+++ b/drivers/staging/greybus/operation.h
@@ -62,7 +62,7 @@ enum gb_operation_result {
*
* The wire format for all numeric fields in the header is little
* endian. Any operation-specific data begins immediately after the
- * header, and is 64-bit aligned.
+ * header.
*/
struct gb_operation_msg_hdr {
__le16 size; /* Size in bytes of header + payload */
@@ -70,7 +70,7 @@ struct gb_operation_msg_hdr {
__u8 type; /* E.g GB_I2C_TYPE_* or GB_GPIO_TYPE_* */
__u8 result; /* Result of request (in responses only) */
__u8 pad[2]; /* must be zero (ignore when read) */
-} __aligned(sizeof(u64));
+};
#define GB_OPERATION_MESSAGE_SIZE_MIN sizeof(struct gb_operation_msg_hdr)
#define GB_OPERATION_MESSAGE_SIZE_MAX U16_MAX