greybus: gpio: fix set-debounce request alignment
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 17 Mar 2015 17:24:28 +0000 (18:24 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 17 Mar 2015 21:34:43 +0000 (22:34 +0100)
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 <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/gpio.c

index 4af5050..458565a 100644 (file)
@@ -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 */