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 <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Johan Hovold 2015-03-17 18:24:28 +01:00 committed by Greg Kroah-Hartman
parent 44538397e7
commit fcc4356de4

View 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 */