summaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-cros-ec.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2016-09-08 10:59:30 +0200
committerThierry Reding <thierry.reding@gmail.com>2016-09-08 10:59:30 +0200
commitdc8e6e1e8f2d2719dd396708b0f56d8b73c9ea52 (patch)
treefa718cd29fd65ad180b57856a9ee67e2bc324c44 /drivers/pwm/pwm-cros-ec.c
parent51f01e4cbaf321effa75a21611ed5c34ea7cc583 (diff)
parent2fbc487df6e6927bc0a0092f86d4d15961e070de (diff)
downloadlinux-dc8e6e1e8f2d2719dd396708b0f56d8b73c9ea52.tar.gz
linux-dc8e6e1e8f2d2719dd396708b0f56d8b73c9ea52.tar.bz2
linux-dc8e6e1e8f2d2719dd396708b0f56d8b73c9ea52.zip
Merge branch 'for-4.9/drivers' into for-next
Diffstat (limited to 'drivers/pwm/pwm-cros-ec.c')
-rw-r--r--drivers/pwm/pwm-cros-ec.c4
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)
struct {
struct cros_ec_command msg;
struct ec_params_pwm_set_duty params;
- } buf;
+ } __packed buf;
struct ec_params_pwm_set_duty *params = &buf.params;
struct cros_ec_command *msg = &buf.msg;
@@ -65,7 +65,7 @@ static int __cros_ec_pwm_get_duty(struct cros_ec_device *ec, u8 index,
struct ec_params_pwm_get_duty params;
struct ec_response_pwm_get_duty resp;
};
- } buf;
+ } __packed buf;
struct ec_params_pwm_get_duty *params = &buf.params;
struct ec_response_pwm_get_duty *resp = &buf.resp;
struct cros_ec_command *msg = &buf.msg;