firmware/ice40-riscv: Fix a couple of 'mixed signedness' warnings

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: I31343263d7dab88a25254258cef44c6c2ddc730a
This commit is contained in:
Sylvain Munaut 2020-10-29 13:24:50 +01:00
parent 5e0217ea72
commit de20fb713d
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ spi_xfer(unsigned cs, const struct spi_xfer_chunk *xfer, unsigned n)
/* Run the chunks */ /* Run the chunks */
while (n--) { while (n--) {
for (int i=0; i<xfer->len; i++) for (unsigned int i=0; i<xfer->len; i++)
{ {
spi_regs[chan]->txdr = xfer->write ? xfer->data[i] : 0x00; spi_regs[chan]->txdr = xfer->write ? xfer->data[i] : 0x00;
while (!(spi_regs[chan]->sr & SPI_SR_RRDY)); while (!(spi_regs[chan]->sr & SPI_SR_RRDY));

View File

@ -176,7 +176,7 @@ e1f_frame_write(struct e1_fifo *fifo, unsigned int *ofs, unsigned int max_frames
} }
static unsigned int static unsigned int
e1f_frame_read(struct e1_fifo *fifo, unsigned int *ofs, int max_frames) e1f_frame_read(struct e1_fifo *fifo, unsigned int *ofs, unsigned int max_frames)
{ {
unsigned int lu, le; unsigned int lu, le;

View File

@ -191,7 +191,7 @@ e1f_frame_write(struct e1_fifo *fifo, unsigned int *ofs, unsigned int max_frames
} }
static unsigned int static unsigned int
e1f_frame_read(struct e1_fifo *fifo, unsigned int *ofs, int max_frames) e1f_frame_read(struct e1_fifo *fifo, unsigned int *ofs, unsigned int max_frames)
{ {
unsigned int lu, le; unsigned int lu, le;