pwm: cros-ec: Fix transposed param settings
authorNick Vaccaro <nvaccaro@google.com>
Fri, 23 Jun 2017 21:52:47 +0000 (14:52 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 6 Jul 2017 15:16:37 +0000 (17:16 +0200)
commite47866a177cf0baba1d714fa93cb762f25bd6cef
tree1b19d6bc7dd7632680c66e3a5a773117919cd8d8
parentfd7b2be8cbcf6cd6d9c9e843ffff36fb91388e51
pwm: cros-ec: Fix transposed param settings

The __cros_ec_pwm_get_duty() routine was transposing the insize and
outsize fields when calling cros_ec_cmd_xfer_status().

The original code worked without error due to size of the two particular
parameter blocks passed to cros_ec_cmd_xfer_status(), so this change is
not fixing an actual runtime problem, just correcting the calling usage.

Signed-off-by: Nick Vaccaro <nvaccaro@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-cros-ec.c