spi: Correct operations check in dm_spi_xfer()
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:35 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:21 +0000 (11:44 +0800)
commitccdabd8956936319c5f7112bf5774e839b085874
tree77ad19d52c8e52e2d2623ba182246e3d75b9d2c9
parent86c70e9ca65fcb84fd7751fbd5e153e3aa2e544d
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>
drivers/spi/ich.c
drivers/spi/spi-uclass.c
include/spi.h