]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: remove obsolete buffer-alignment requirement
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 7 Apr 2015 09:27:14 +0000 (11:27 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 7 Apr 2015 15:31:05 +0000 (17:31 +0200)
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 <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus.h

index a466fc5cdae4d78ac6f069e52eb0e50db1880cf2..fb90f96e037591f60ba0d5c43e2a205898b953c6 100644 (file)
@@ -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
  */