]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: spi: Return 0 if driver does not implement ops->cs_info
authorBin Meng <bmeng.cn@gmail.com>
Mon, 9 Sep 2019 13:00:00 +0000 (06:00 -0700)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 24 Oct 2019 19:18:31 +0000 (00:48 +0530)
commit4dd520b36bce9b35f7a12f3ffd9a95269d425170
tree5fa8faec8ebd54460c5ca96c88278f3ea053daba
parent0c8e605670fac186f225a957eb8e1a774cb17c41
dm: spi: Return 0 if driver does not implement ops->cs_info

If an SPI controller driver does not implement ops->cs_info, that
probably means any chip select number could be valid, hence let's
return 0 for spi_cs_info().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # SoPine
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
doc/driver-model/spi-howto.rst
drivers/spi/spi-uclass.c