From: Johan Hovold Date: Tue, 17 Mar 2015 17:24:28 +0000 (+0100) Subject: greybus: gpio: fix set-debounce request alignment X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1684 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fcc4356de4601c83530928e05b041e4ac678fd6a;p=karo-tx-linux.git greybus: gpio: fix set-debounce request alignment Fix alignment of the usec-field in the set-debounce request, which should follow the which-field without any inserted padding. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c index 4af5050edea0..458565a7afb8 100644 --- a/drivers/staging/greybus/gpio.c +++ b/drivers/staging/greybus/gpio.c @@ -116,7 +116,7 @@ struct gb_gpio_set_value_request { struct gb_gpio_set_debounce_request { __u8 which; - __le16 usec; + __le16 usec __packed; }; /* debounce response has no payload */