From: Johan Hovold Date: Tue, 17 Mar 2015 17:24:29 +0000 (+0100) Subject: greybus: pwm: fix config-request alignment X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1683 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b41caa99a25f62326be451592c493de29347d142;p=karo-tx-linux.git greybus: pwm: fix config-request alignment Fix alignment of the duty and period-fields in the config 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/pwm.c b/drivers/staging/greybus/pwm.c index 3f508bf66ec0..4e38b8a4624e 100644 --- a/drivers/staging/greybus/pwm.c +++ b/drivers/staging/greybus/pwm.c @@ -56,8 +56,8 @@ struct gb_pwm_deactivate_request { struct gb_pwm_config_request { __u8 which; - __le32 duty; - __le32 period; + __le32 duty __packed; + __le32 period __packed; }; struct gb_pwm_polarity_request {