spi: spl022: fix Microwire full duplex mode
authorThomas Perrot <thomas.perrot@bootlin.com>
Fri, 22 Oct 2021 14:21:04 +0000 (16:21 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 26 Oct 2021 10:53:57 +0000 (11:53 +0100)
commitd81d0e41ed5fe7229a2c9a29d13bad288c7cf2d2
treeb9fc95295c9539dac0c84609a97465df04a538ef
parentf09f6dfef8ce7b70a240cf83811e2b1909c3e47b
spi: spl022: fix Microwire full duplex mode

There are missing braces in the function that verify controller parameters,
then an error is always returned when the parameter to select Microwire
frames operation is used on devices allowing it.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Link: https://lore.kernel.org/r/20211022142104.1386379-1-thomas.perrot@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pl022.c