spi: spl022: fix Microwire full duplex mode
authorThomas Perrot <thomas.perrot@bootlin.com>
Fri, 22 Oct 2021 14:21:04 +0000 (16:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 13:03:43 +0000 (14:03 +0100)
commit07f7a1864929fe705afd9b5b97946fe0b2983064
treeb13927c005bb4c192a85fece1446a1f0de836d84
parentdb1d9d102ee45b0462237d3257d1520806ab0b4e
spi: spl022: fix Microwire full duplex mode

[ Upstream commit d81d0e41ed5fe7229a2c9a29d13bad288c7cf2d2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-pl022.c