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:
parent
5e0217ea72
commit
de20fb713d
|
@ -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));
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue