From: Johan Hovold Date: Tue, 7 Apr 2015 09:27:14 +0000 (+0200) Subject: greybus: remove obsolete buffer-alignment requirement X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1600 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cbba76f5cdbc14d2ae415c6f949c7d725b06a27b;p=karo-tx-linux.git greybus: remove obsolete buffer-alignment requirement Remove unused and unnecessary buffer-alignment define that host driver were supposed to use. We can handle unaligned incoming buffers just fine by accessing the operation-message header via a copy in the receive path, rather than requiring host drivers to make sure the alignment is correct. Signed-off-by: Johan Hovold Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h index a466fc5cdae4..fb90f96e0375 100644 --- a/drivers/staging/greybus/greybus.h +++ b/drivers/staging/greybus/greybus.h @@ -79,9 +79,6 @@ struct svc_msg; */ #define GB_BUFFER_HEADROOM_MAX sizeof(u64) -/* Buffers allocated from the host driver will be aligned to this multiple */ -#define GB_BUFFER_ALIGN sizeof(u32) - /* Greybus "Host driver" structure, needed by a host controller driver to be * able to handle both SVC control as well as "real" greybus messages */