Commit 1a8196a9 authored by Charles Kearney's avatar Charles Kearney Committed by Mark Brown

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: 730bc8ba spi: spi-gxp: Add support for HPE GXP SoCs
Signed-off-by: default avatarCharles Kearney <charles.kearney@hpe.com>
Link: https://lore.kernel.org/r/20230920215339.4125856-2-charles.kearney@hpe.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3b4e5194
...@@ -194,7 +194,7 @@ static ssize_t gxp_spi_write(struct gxp_spi_chip *chip, const struct spi_mem_op ...@@ -194,7 +194,7 @@ static ssize_t gxp_spi_write(struct gxp_spi_chip *chip, const struct spi_mem_op
return ret; return ret;
} }
return write_len; return 0;
} }
static int do_gxp_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) static int do_gxp_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment