android_kernel_xiaomi_sm8450/include/linux/spi
Andreas Larsson 446411e18b 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>
2013-04-07 10:12:20 +01:00
..
74x164.h
ad7877.h
ad7879.h Input: ad7879 - add option to correct xy axis 2012-07-06 19:12:26 -07:00
ads7846.h Input: ads7846 - enable pendown GPIO debounce time setting 2012-11-21 13:09:56 -08:00
at73c213.h
at86rf230.h drivers/ieee802154: add support for the at86rf230/231 transceivers 2012-06-26 21:06:11 -07:00
corgi_lcd.h
ds1305.h
eeprom.h Support M95040 SPI EEPROM 2012-04-18 14:57:57 -07:00
flash.h
ifx_modem.h
l4f00242t03.h backlight: fix broken regulator API usage in l4f00242t03 2011-10-31 17:30:54 -07:00
libertas_spi.h
lms283gf05.h
max7301.h
mc33880.h
mcp23s08.h
mmc_spi.h device.h: audit and cleanup users in main include dir 2012-03-16 10:38:24 -04:00
mxs-spi.h mmc: spi: Pull out common DMA parts from MXS MMC 2012-08-17 22:54:15 +01:00
pxa2xx_spi.h spi/pxa2xx: add support for Intel Low Power Subsystem SPI 2013-02-08 13:14:40 +00:00
rspi.h spi/rspi: add dmaengine support 2012-05-19 22:37:16 -06:00
s3c24xx.h ARM: S3C24XX: move spi-s3c24xx platdata out of mach 2012-01-31 20:06:27 +09:00
sh_hspi.h spi: sh-hspi: control spi clock more correctly 2012-03-15 03:41:01 -06:00
sh_msiof.h
spi_bitbang.h
spi_gpio.h spi: spi-gpio: fix compilation warning on 64 bits systems 2013-01-31 18:25:44 +08:00
spi_oc_tiny.h
spi-tegra.h spi: tegra: add spi driver for SLINK controller 2012-10-30 18:38:35 +00:00
spi.h spi: Initialize cs_gpio and cs_gpios with -ENOENT 2013-04-07 10:12:20 +01:00
tdo24m.h
tle62x0.h
tsc2005.h spi: tsc2005: delete soon-obsolete e-mail address 2012-10-17 16:32:46 +09:00
xilinx_spi.h