android_kernel_samsung_sm8650/include/linux/spi
Oleksij Rempel 029b42d851
spi: introduce SPI_MODE_X_MASK macro
Provide a macro to filter all SPI_MODE_0,1,2,3 mode in one run.

The latest SPI framework will parse the devicetree in following call
sequence: of_register_spi_device() -> of_spi_parse_dt()
So, driver do not need to pars the devicetree and will get prepared
flags in the probe.

On one hand it is good far most drivers. On other hand some drivers need to
filter flags provide by SPI framework and apply know to work flags. This drivers
may use SPI_MODE_X_MASK to filter MODE flags and set own, known flags:
  spi->flags &= ~SPI_MODE_X_MASK;
  spi->flags |= SPI_MODE_0;

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20201027095724.18654-2-o.rempel@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-11-11 12:39:30 +00:00
..
ad7877.h
ads7846.h
altera.h spi: altera: add platform data for slave information. 2020-06-15 23:36:03 +01:00
at73c213.h
at86rf230.h
cc2520.h
corgi_lcd.h backlight: corgi: Convert to use GPIO descriptors 2020-03-25 09:30:46 +00:00
ds1305.h
eeprom.h eeprom: at25: allow page sizes greater than 16 bit 2020-08-28 12:08:08 +02:00
flash.h
ifx_modem.h tty: serial: ifx6x60: Convert to GPIO descriptors 2020-03-12 10:03:54 +01:00
libertas_spi.h
lms283gf05.h
max7301.h
mc33880.h
mmc_spi.h
mxs-spi.h
pxa2xx_spi.h
rspi.h
s3c24xx-fiq.h ARM: s3c24xx: move spi fiq handler into platform 2020-08-19 21:45:38 +02:00
s3c24xx.h ARM: s3c24xx: spi: avoid hardcoding fiq number in driver 2020-08-20 17:43:45 +02:00
sh_hspi.h
sh_msiof.h
spi_bitbang.h
spi_gpio.h
spi_oc_tiny.h
spi-fsl-dspi.h
spi-mem.h spi: spi-mem: allow specifying a command's extension 2020-07-14 17:29:38 +01:00
spi.h spi: introduce SPI_MODE_X_MASK macro 2020-11-11 12:39:30 +00:00
tdo24m.h
tle62x0.h
xilinx_spi.h