summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/pwm.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-03-17 18:24:29 +0100
committerGreg Kroah-Hartman <greg@kroah.com>2015-03-17 22:34:43 +0100
commitb41caa99a25f62326be451592c493de29347d142 (patch)
tree294dcab82e58701aa5af5a6d3738710515193b77 /drivers/staging/greybus/pwm.c
parentfcc4356de4601c83530928e05b041e4ac678fd6a (diff)
downloadlinux-b41caa99a25f62326be451592c493de29347d142.tar.bz2
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>
Diffstat (limited to 'drivers/staging/greybus/pwm.c')
-rw-r--r--drivers/staging/greybus/pwm.c4
1 files changed, 2 insertions, 2 deletions
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 {