spi: spi-gxp: BUG: Correct spi write return value
authorCharles Kearney <charles.kearney@hpe.com>
Wed, 20 Sep 2023 21:53:39 +0000 (21:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:46 +0000 (14:56 +0200)
commit404b8bc41872b9d5ebf1bfb8b6fa02cfb8b00449
tree3ef93f22c4feecdbc4707413e5805d7b778d91da
parentd3dc8acb60f84f21bf62dcdc6a319db4f0b01a4b
spi: spi-gxp: BUG: Correct spi write return value

[ Upstream commit 1a8196a93e493c0a50b800cb09cef60b124eee15 ]

Bug fix to correct return value of gxp_spi_write function to zero.
Completion of succesful operation should return zero.

Fixes: 730bc8ba5e9e spi: spi-gxp: Add support for HPE GXP SoCs
Signed-off-by: Charles Kearney <charles.kearney@hpe.com>
Link: https://lore.kernel.org/r/20230920215339.4125856-2-charles.kearney@hpe.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-gxp.c