spi: signedness bug in qspi_trigger_transfer_out_int()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 3 Apr 2015 08:45:27 +0000 (11:45 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 6 Apr 2015 16:20:07 +0000 (17:20 +0100)
commitc9bc3e8bf04225968f1cee34b50216263ed58000
tree1326d33f451d5bdb8534e4bccf8772781e63d060
parent4b6fe3edcbbaa3d0e5513adcb9577c7e184ad1b5
spi: signedness bug in qspi_trigger_transfer_out_int()

We need "ret" to be unsigned for the error handling to work.  The
signedness of "i" and "n" don't matter but qspi_set_send_trigger()
returns an int so I've changed them to int as well.

Fixes: 4b6fe3edcbba ('spi: Using Trigger number to transmit/receive data')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rspi.c