diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-07-17 16:23:11 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-18 13:22:37 +0100 |
commit | 62dbbae483b6452e688b8e26c4d024d484117697 (patch) | |
tree | 7f531aa6f0cbeeaaba956cbd9cb2e8f914605a71 /drivers/spi/spi-dw.h | |
parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) | |
download | linux-62dbbae483b6452e688b8e26c4d024d484117697.tar.gz linux-62dbbae483b6452e688b8e26c4d024d484117697.tar.bz2 linux-62dbbae483b6452e688b8e26c4d024d484117697.zip |
spi: dw: allow providing own set_cs callback
Allow platform specific drivers to provide their own set_cs callback when
the IP integration requires it.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw.h')
-rw-r--r-- | drivers/spi/spi-dw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-dw.h b/drivers/spi/spi-dw.h index 2cde2473b3e9..446013022849 100644 --- a/drivers/spi/spi-dw.h +++ b/drivers/spi/spi-dw.h @@ -112,6 +112,7 @@ struct dw_spi { u32 reg_io_width; /* DR I/O width in bytes */ u16 bus_num; u16 num_cs; /* supported slave numbers */ + void (*set_cs)(struct spi_device *spi, bool enable); /* Current message transfer state info */ size_t len; |