spi: rspi: Make qspi_set_send_trigger() return "unsigned int"
qspi_set_send_trigger() returns an unsigned value, so make it return "unsigned int". Update the loop variables qspi_trigger_transfer_out_int() to match the above. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
5d4db691ed
commit
cb76b1ca91
@ -383,7 +383,8 @@ static void qspi_update(const struct rspi_data *rspi, u8 mask, u8 val, u8 reg)
|
||||
rspi_write8(rspi, data, reg);
|
||||
}
|
||||
|
||||
static int qspi_set_send_trigger(struct rspi_data *rspi, unsigned int len)
|
||||
static unsigned int qspi_set_send_trigger(struct rspi_data *rspi,
|
||||
unsigned int len)
|
||||
{
|
||||
unsigned int n;
|
||||
|
||||
@ -724,7 +725,8 @@ static int rspi_rz_transfer_one(struct spi_master *master,
|
||||
static int qspi_trigger_transfer_out_in(struct rspi_data *rspi, const u8 *tx,
|
||||
u8 *rx, unsigned int len)
|
||||
{
|
||||
int i, n, ret;
|
||||
unsigned int i, n;
|
||||
int ret;
|
||||
|
||||
while (len > 0) {
|
||||
n = qspi_set_send_trigger(rspi, len);
|
||||
|
Loading…
Reference in New Issue
Block a user