diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-03-17 18:24:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2015-03-17 22:34:43 +0100 |
commit | fcc4356de4601c83530928e05b041e4ac678fd6a (patch) | |
tree | bac7edada1dc7ce162bf90d10d605fb3ef902d51 /drivers/staging/greybus/gpio.c | |
parent | 44538397e79987080adc619c6fd4edda92093d46 (diff) | |
download | op-kernel-dev-fcc4356de4601c83530928e05b041e4ac678fd6a.zip op-kernel-dev-fcc4356de4601c83530928e05b041e4ac678fd6a.tar.gz |
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>
Diffstat (limited to 'drivers/staging/greybus/gpio.c')
-rw-r--r-- | drivers/staging/greybus/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c index 4af5050..458565a 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 */ |