mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 23:33:22 +07:00
[media] atmel-isi: tag dma_addr_t as such
Instead of using u32 for DMA address, use the proper Kernel type for it. drivers/media/platform/soc_camera/atmel-isi.c: In function 'atmel_isi_probe': >> drivers/media/platform/soc_camera/atmel-isi.c:981:26: warning: passing argument 3 of 'dma_alloc_attrs' from incompatible pointer type isi->p_fb_descriptors = dma_alloc_coherent(&pdev->dev, ^ Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
14bb9b0485
commit
8f05232f59
@ -54,7 +54,7 @@ static void set_dma_ctrl(struct fbd *fb_desc, u32 ctrl)
|
|||||||
struct isi_dma_desc {
|
struct isi_dma_desc {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
struct fbd *p_fbd;
|
struct fbd *p_fbd;
|
||||||
u32 fbd_phys;
|
dma_addr_t fbd_phys;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Frame buffer data */
|
/* Frame buffer data */
|
||||||
@ -75,7 +75,7 @@ struct atmel_isi {
|
|||||||
|
|
||||||
/* Allocate descriptors for dma buffer use */
|
/* Allocate descriptors for dma buffer use */
|
||||||
struct fbd *p_fb_descriptors;
|
struct fbd *p_fb_descriptors;
|
||||||
u32 fb_descriptors_phys;
|
dma_addr_t fb_descriptors_phys;
|
||||||
struct list_head dma_desc_head;
|
struct list_head dma_desc_head;
|
||||||
struct isi_dma_desc dma_desc[MAX_BUFFER_NUM];
|
struct isi_dma_desc dma_desc[MAX_BUFFER_NUM];
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ static irqreturn_t atmel_isi_handle_streaming(struct atmel_isi *isi)
|
|||||||
isi->active = list_entry(isi->video_buffer_list.next,
|
isi->active = list_entry(isi->video_buffer_list.next,
|
||||||
struct frame_buffer, list);
|
struct frame_buffer, list);
|
||||||
isi_writel(isi, ISI_DMA_C_DSCR,
|
isi_writel(isi, ISI_DMA_C_DSCR,
|
||||||
isi->active->p_dma_desc->fbd_phys);
|
(u32)isi->active->p_dma_desc->fbd_phys);
|
||||||
isi_writel(isi, ISI_DMA_C_CTRL,
|
isi_writel(isi, ISI_DMA_C_CTRL,
|
||||||
ISI_DMA_CTRL_FETCH | ISI_DMA_CTRL_DONE);
|
ISI_DMA_CTRL_FETCH | ISI_DMA_CTRL_DONE);
|
||||||
isi_writel(isi, ISI_DMA_CHER, ISI_DMA_CHSR_C_CH);
|
isi_writel(isi, ISI_DMA_CHER, ISI_DMA_CHSR_C_CH);
|
||||||
@ -346,7 +346,7 @@ static void start_dma(struct atmel_isi *isi, struct frame_buffer *buffer)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
isi_writel(isi, ISI_DMA_C_DSCR, buffer->p_dma_desc->fbd_phys);
|
isi_writel(isi, ISI_DMA_C_DSCR, (u32)buffer->p_dma_desc->fbd_phys);
|
||||||
isi_writel(isi, ISI_DMA_C_CTRL, ISI_DMA_CTRL_FETCH | ISI_DMA_CTRL_DONE);
|
isi_writel(isi, ISI_DMA_C_CTRL, ISI_DMA_CTRL_FETCH | ISI_DMA_CTRL_DONE);
|
||||||
isi_writel(isi, ISI_DMA_CHER, ISI_DMA_CHSR_C_CH);
|
isi_writel(isi, ISI_DMA_CHER, ISI_DMA_CHSR_C_CH);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user