diff options
Diffstat (limited to 'drivers/pwm/pwm-cros-ec.c')
-rw-r--r-- | drivers/pwm/pwm-cros-ec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm-cros-ec.c index 99b9acc1a420..f6ca4e8c6253 100644 --- a/drivers/pwm/pwm-cros-ec.c +++ b/drivers/pwm/pwm-cros-ec.c | |||
@@ -38,7 +38,7 @@ static int cros_ec_pwm_set_duty(struct cros_ec_device *ec, u8 index, u16 duty) | |||
38 | struct { | 38 | struct { |
39 | struct cros_ec_command msg; | 39 | struct cros_ec_command msg; |
40 | struct ec_params_pwm_set_duty params; | 40 | struct ec_params_pwm_set_duty params; |
41 | } buf; | 41 | } __packed buf; |
42 | struct ec_params_pwm_set_duty *params = &buf.params; | 42 | struct ec_params_pwm_set_duty *params = &buf.params; |
43 | struct cros_ec_command *msg = &buf.msg; | 43 | struct cros_ec_command *msg = &buf.msg; |
44 | 44 | ||
@@ -65,7 +65,7 @@ static int __cros_ec_pwm_get_duty(struct cros_ec_device *ec, u8 index, | |||
65 | struct ec_params_pwm_get_duty params; | 65 | struct ec_params_pwm_get_duty params; |
66 | struct ec_response_pwm_get_duty resp; | 66 | struct ec_response_pwm_get_duty resp; |
67 | }; | 67 | }; |
68 | } buf; | 68 | } __packed buf; |
69 | struct ec_params_pwm_get_duty *params = &buf.params; | 69 | struct ec_params_pwm_get_duty *params = &buf.params; |
70 | struct ec_response_pwm_get_duty *resp = &buf.resp; | 70 | struct ec_response_pwm_get_duty *resp = &buf.resp; |
71 | struct cros_ec_command *msg = &buf.msg; | 71 | struct cros_ec_command *msg = &buf.msg; |