mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 07:06:40 +07:00
spi: s3c64xx: fix casting warning
sdd->ops->request is unsigned int, not unsigned long. Also, sdd->rx_dma.ch is a 'struct dma_chan *'. Thus, (void *) is converted to (struct dma_chan *)(unsigned long), in order to fix possible sparse warnings. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
c65bc4a8df
commit
b998aca8ad
@ -336,10 +336,10 @@ static int acquire_dma(struct s3c64xx_spi_driver_data *sdd)
|
|||||||
req.cap = DMA_SLAVE;
|
req.cap = DMA_SLAVE;
|
||||||
req.client = &s3c64xx_spi_dma_client;
|
req.client = &s3c64xx_spi_dma_client;
|
||||||
|
|
||||||
sdd->rx_dma.ch = (void *)sdd->ops->request(sdd->rx_dma.dmach,
|
sdd->rx_dma.ch = (struct dma_chan *)(unsigned long)sdd->ops->request(
|
||||||
&req, dev, "rx");
|
sdd->rx_dma.dmach, &req, dev, "rx");
|
||||||
sdd->tx_dma.ch = (void *)sdd->ops->request(sdd->tx_dma.dmach,
|
sdd->tx_dma.ch = (struct dma_chan *)(unsigned long)sdd->ops->request(
|
||||||
&req, dev, "tx");
|
sdd->tx_dma.dmach, &req, dev, "tx");
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user