Skip to content

Commit 1a8196a

Browse files
charkearbroonie
authored andcommitted
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: 730bc8b 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>
1 parent 3b4e519 commit 1a8196a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-gxp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static ssize_t gxp_spi_write(struct gxp_spi_chip *chip, const struct spi_mem_op
194194
return ret;
195195
}
196196

197-
return write_len;
197+
return 0;
198198
}
199199

200200
static int do_gxp_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op)

0 commit comments

Comments
 (0)