drivers: imx: edma: Make soff and doff signed

This allows the SGN macro to no longer generate a warning on the "-1"
case and thus allows building with XCC. GCC doesn't seem to care about
this one. No actual change in the logic itself.

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
This commit is contained in:
Paul Olaru 2019-11-18 14:09:07 +02:00 committed by Daniel Baluta
parent dbb70c840c
commit aee8e0553a
1 changed files with 4 additions and 4 deletions

View File

@ -258,8 +258,8 @@ static int edma_validate_nonsg_config(struct dma_sg_elem_array *sgelems,
* scatter-gather situation, it also allocates and computes the
* additional TCDs, one for each of the input elems.
*/
static int edma_setup_tcd(struct dma_chan_data *channel, uint16_t soff,
uint16_t doff, bool cyclic, bool sg, bool irqoff,
static int edma_setup_tcd(struct dma_chan_data *channel, int16_t soff,
int16_t doff, bool cyclic, bool sg, bool irqoff,
struct dma_sg_elem_array *sgelems, int src_width,
int dest_width, uint32_t burst_elems)
{
@ -333,8 +333,8 @@ static int edma_set_config(struct dma_chan_data *channel,
struct dma_sg_config *config)
{
int handshake, irq;
uint16_t soff = 0;
uint16_t doff = 0;
int16_t soff = 0;
int16_t doff = 0;
/* We may need to pass some data through the handshake in the
* future, so we just have them here, even if unused for now