]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
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 4af5050edea05e03e552db7d12ed39cba4d4ae56..458565a7afb8dea967769974b3be0edacb6d0b4f 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 */