diff options
author | Simon Glass <sjg@chromium.org> | 2019-12-06 21:42:35 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-12-15 11:44:21 +0800 |
commit | ccdabd8956936319c5f7112bf5774e839b085874 (patch) | |
tree | 77ad19d52c8e52e2d2623ba182246e3d75b9d2c9 /include/spi.h | |
parent | 86c70e9ca65fcb84fd7751fbd5e153e3aa2e544d (diff) |
spi: Correct operations check in dm_spi_xfer()
At present we have to have an xfer() method even if it does nothing. This
is not correct, so fix it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/spi.h')
-rw-r--r-- | include/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/spi.h b/include/spi.h index 6fbb4336ce..ba2c8406b2 100644 --- a/include/spi.h +++ b/include/spi.h @@ -224,7 +224,7 @@ void spi_release_bus(struct spi_slave *slave); int spi_set_wordlen(struct spi_slave *slave, unsigned int wordlen); /** - * SPI transfer + * SPI transfer (optional if mem_ops is used) * * This writes "bitlen" bits out the SPI MOSI port and simultaneously clocks * "bitlen" bits in the SPI MISO port. That's just the way SPI works. |