]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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)
committerMark Brown <broonie@kernel.org>
Wed, 27 Sep 2023 15:06:36 +0000 (17:06 +0200)
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>
drivers/spi/spi-gxp.c

index fd2fac236bbd887160bcf7e25bc65ded4eb4a947..3aff5a166c946c8d3b670203916441222832b082 100644 (file)
@@ -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)