cros_ec: Fix two bugs in the SPI implementation
authorSimon Glass <sjg@chromium.org>
Mon, 7 Jul 2014 16:16:37 +0000 (10:16 -0600)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tue, 5 Aug 2014 18:48:01 +0000 (00:18 +0530)
commit2001b9a64165658e14f5afbe16874e0c55ddd04f
tree78ddefbf83b72b9abac99cf7196ba3d2c163e7ae
parenta52a178f0b4dce6a85a45ccea348be92fc7f1b6d
cros_ec: Fix two bugs in the SPI implementation

An incorrect message version is passed to the EC in some cases and the
parameters of one function are switched.

Fix these problems.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/misc/cros_ec_spi.c