From cbba76f5cdbc14d2ae415c6f949c7d725b06a27b Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 7 Apr 2015 11:27:14 +0200 Subject: [PATCH] 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 --- drivers/staging/greybus/greybus.h | 3 --- 1 file changed, 3 deletions(-) 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 */ -- 2.39.5