diff options
author | Tom Rini <trini@konsulko.com> | 2019-10-30 09:04:52 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-10-30 09:04:52 -0400 |
commit | cc64810dc6234a3537502a05988fa7a1a6fa5d55 (patch) | |
tree | c4fa2eb538e6805a6c6080dea5b8fc03a7a8dc15 /doc | |
parent | ffc379b42c85466e1dd4c8fee8268801f26d2ab8 (diff) | |
parent | 5f19c9302133cda54d5d1a6b1caa400260de9192 (diff) | |
download | u-boot-cc64810dc6234a3537502a05988fa7a1a6fa5d55.tar.gz |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-sunxi
- H6 dts(i) sync (Clément)
- H6 PIO (Icenowy)
- Fix pll1 clock calculation (Stefan)
- H6 dram, half DQ (Jernej)
- A64 OLinuXino eMMC (Sunil)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/driver-model/spi-howto.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/driver-model/spi-howto.rst b/doc/driver-model/spi-howto.rst index 5540eb7d38..9631a5059d 100644 --- a/doc/driver-model/spi-howto.rst +++ b/doc/driver-model/spi-howto.rst @@ -116,7 +116,7 @@ Put this code at the bottom of your existing driver file: static int exynos_cs_info(struct udevice *bus, uint cs, struct spi_cs_info *info) { - return -ENODEV; + return -EINVAL; } static const struct dm_spi_ops exynos_spi_ops = { @@ -633,9 +633,9 @@ is not obvious from outside the driver. In this case you can provide a method for cs_info() to deal with this. If you don't provide it, then the device tree will be used to determine what chip selects are valid. -Return -ENODEV if the supplied chip select is invalid, or 0 if it is valid. -If you don't provide the cs_info() method, -ENODEV is assumed for all -chip selects that do not appear in the device tree. +Return -EINVAL if the supplied chip select is invalid, or 0 if it is valid. +If you don't provide the cs_info() method, 0 is assumed for all chip selects +that do not appear in the device tree. Test it |