diff options
author | Charles Kearney <charles.kearney@hpe.com> | 2023-09-20 21:53:39 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-27 17:06:36 +0200 |
commit | 1a8196a93e493c0a50b800cb09cef60b124eee15 (patch) | |
tree | 71df44c66de2e6a736ea19a9a3b011a059fce963 /drivers | |
parent | 3b4e5194138b4576e7b703edcd85ffe8783df798 (diff) |
spi: spi-gxp: BUG: Correct spi write return value
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi-gxp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-gxp.c b/drivers/spi/spi-gxp.c index fd2fac236bbd..3aff5a166c94 100644 --- a/drivers/spi/spi-gxp.c +++ b/drivers/spi/spi-gxp.c @@ -194,7 +194,7 @@ static ssize_t gxp_spi_write(struct gxp_spi_chip *chip, const struct spi_mem_op return ret; } - return write_len; + return 0; } static int do_gxp_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) |