summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-cros-ec.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2017-07-06 17:16:47 +0200
committerThierry Reding <thierry.reding@gmail.com>2017-07-06 17:16:47 +0200
commit5ec8c48a6235175f7ff59ed1acbe91d4d0398026 (patch)
tree992a81b3991ed9060edebd4da7aa9d7694f7a9b0 /drivers/pwm/pwm-cros-ec.c
parent72f2ebbdf432fa617e70bc3b3219ce1166a4e09d (diff)
parente47866a177cf0baba1d714fa93cb762f25bd6cef (diff)
downloadlinux-5ec8c48a6235175f7ff59ed1acbe91d4d0398026.tar.bz2
Merge branch 'for-4.13/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 f6ca4e8c6253..9c13694eaa24 100644
--- a/drivers/pwm/pwm-cros-ec.c
+++ b/drivers/pwm/pwm-cros-ec.c
@@ -75,8 +75,8 @@ static int __cros_ec_pwm_get_duty(struct cros_ec_device *ec, u8 index,
msg->version = 0;
msg->command = EC_CMD_PWM_GET_DUTY;
- msg->insize = sizeof(*params);
- msg->outsize = sizeof(*resp);
+ msg->insize = sizeof(*resp);
+ msg->outsize = sizeof(*params);
params->pwm_type = EC_PWM_TYPE_GENERIC;
params->index = index;