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 <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
diff --git a/drivers/staging/greybus/pwm.c b/drivers/staging/greybus/pwm.c
index 3f508bf..4e38b8a 100644
--- a/drivers/staging/greybus/pwm.c
+++ b/drivers/staging/greybus/pwm.c
@@ -56,8 +56,8 @@
struct gb_pwm_config_request {
__u8 which;
- __le32 duty;
- __le32 period;
+ __le32 duty __packed;
+ __le32 period __packed;
};
struct gb_pwm_polarity_request {