diff options
author | Andreas Larsson <andreas@gaisler.com> | 2013-02-13 14:20:25 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2013-04-07 11:12:20 +0200 |
commit | 446411e18b2cb17d153e45f634a3c9a79ada3ac2 (patch) | |
tree | d0b227257591b9a010d453bef1bd2645901e3f0d /scripts/Makefile.host | |
parent | spi/atmel: fix speed_hz check in atmel_spi_transfer() (diff) | |
download | linux-446411e18b2cb17d153e45f634a3c9a79ada3ac2.tar.xz linux-446411e18b2cb17d153e45f634a3c9a79ada3ac2.zip |
spi: Initialize cs_gpio and cs_gpios with -ENOENT
The return value from of_get_named_gpio is -ENOENT when the given index
matches a hole in the "cs-gpios" property phandle list. However, the
default value of cs_gpio in struct spi_device and entries of cs_gpios in
struct spi_master is -EINVAL, which is documented to indicate that a
GPIO line should not be used for the given spi_device.
This sets the default value of cs_gpio in struct spi_device and entries
of cs_gpios in struct spi_master to -ENOENT. Thus, -ENOENT is the only
value used to indicate that no GPIO line should be used.
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'scripts/Makefile.host')
0 files changed, 0 insertions, 0 deletions