diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2018-07-28 11:19:13 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-01 16:50:24 +0300 |
commit | 304d34360b099020a12af2abb7e1ac506f4ba16d (patch) | |
tree | 895183b4b3325dd53340300697a0484282d7bed6 /drivers/spi/spi-lm70llp.c | |
parent | 5ba155a4d4cc8e4cdd3db6df7d03271a3bd91177 (diff) | |
download | linux-304d34360b099020a12af2abb7e1ac506f4ba16d.tar.xz |
spi: add flags parameter to txrx_word function pointers
Add the capability to specify the flag parameter used in
bitbang_txrx_be_cpha{0,1} through the txrx_word function pointers of
spi_bitbang data structure. That feature will be used to add spi-3wire
support to the spi-gpio controller
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-lm70llp.c')
-rw-r--r-- | drivers/spi/spi-lm70llp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/spi/spi-lm70llp.c b/drivers/spi/spi-lm70llp.c index 61ee0f4269ae..4549efd792da 100644 --- a/drivers/spi/spi-lm70llp.c +++ b/drivers/spi/spi-lm70llp.c @@ -188,9 +188,10 @@ static void lm70_chipselect(struct spi_device *spi, int value) /* * Our actual bitbanger routine. */ -static u32 lm70_txrx(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits) +static u32 lm70_txrx(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits, + unsigned flags) { - return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits); + return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits); } static void spi_lm70llp_attach(struct parport *p) |