Fix 64-bit compile warning:
drivers/media/video/timblogiw.c: In function ‘timblogiw_dma_filter_fn’:
drivers/media/video/timblogiw.c:151: warning: cast from pointer to integer of different size
drivers/media/video/timblogiw.c: In function ‘timblogiw_open’:
drivers/media/video/timblogiw.c:670: warning: cast to pointer from integer of different size
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Richard Rojförs <richard.rojfors@pelagicore.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
static bool timblogiw_dma_filter_fn(struct dma_chan *chan, void *filter_param)
{
- return chan->chan_id == (int)filter_param;
+ return chan->chan_id == (uintptr_t)filter_param;
}
/* IOCTL functions */
/* find the DMA channel */
fh->chan = dma_request_channel(mask, timblogiw_dma_filter_fn,
- (void *)lw->pdata.dma_channel);
+ (void *)(uintptr_t)lw->pdata.dma_channel);
if (!fh->chan) {
dev_err(&vdev->dev, "Failed to get DMA channel\n");
kfree(fh);