diff options
Diffstat (limited to 'src/ec')
-rw-r--r-- | src/ec/google/chromeec/ec_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ec/google/chromeec/ec_spi.c b/src/ec/google/chromeec/ec_spi.c index 012a4cace5..d6b7b0c4ea 100644 --- a/src/ec/google/chromeec/ec_spi.c +++ b/src/ec/google/chromeec/ec_spi.c @@ -31,8 +31,8 @@ static int crosec_spi_io(uint8_t *write_bytes, size_t write_size, int rv; spi_claim_bus(slave); - rv = spi_xfer(slave, write_bytes, write_size * 8, read_bytes, - read_size * 8); + rv = spi_xfer(slave, write_bytes, write_size, read_bytes, + read_size); spi_release_bus(slave); if (rv != 0) { |