cros_ec_debugfs: Pass proper struct sizes to cros_ec_cmd_xfer()
authorShawn Nematbakhsh <shawnn@chromium.org>
Thu, 16 Feb 2017 17:49:29 +0000 (09:49 -0800)
committerBenson Leung <bleung@chromium.org>
Fri, 16 Jun 2017 20:57:45 +0000 (13:57 -0700)
commit73b44f40c63bebcce9d66c4072878ecaceb43dda
treee9688fe1f4b48b5673798d2667264e8ff0aed2bb
parente86264595225d2764a903965356ef59aeb7d1c47
cros_ec_debugfs: Pass proper struct sizes to cros_ec_cmd_xfer()

We should output or receive every byte in the param / reply struct,
unrelated to the pointer size.

Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
[bleung: Picked from crosreview.com/444085 for cros_ec_debugfs.c only.
 cros_ec.c upstream had a different cros_ec_sleep_event which didn't
 have the sizeof issue]
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_debugfs.c