[PATCH 08/13] atmel-isi: remove the function set_dma_ctrl() as it just use once

Josh Wu rainyfeeling at gmail.com
Mon Jan 18 04:52:19 PST 2016


From: Josh Wu <josh.wu at atmel.com>

Signed-off-by: Josh Wu <rainyfeeling at gmail.com>
---

 drivers/media/platform/soc_camera/atmel-isi.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c
index ed4d04b..e1ad18f 100644
--- a/drivers/media/platform/soc_camera/atmel-isi.c
+++ b/drivers/media/platform/soc_camera/atmel-isi.c
@@ -46,11 +46,6 @@ struct fbd {
 	u32 next_fbd_address;
 };
 
-static void set_dma_ctrl(struct fbd *fb_desc, u32 ctrl)
-{
-	fb_desc->dma_ctrl = ctrl;
-}
-
 struct isi_dma_desc {
 	struct list_head list;
 	struct fbd *p_fbd;
@@ -385,7 +380,7 @@ static int buffer_prepare(struct vb2_buffer *vb)
 			desc->p_fbd->fb_address =
 					vb2_dma_contig_plane_dma_addr(vb, 0);
 			desc->p_fbd->next_fbd_address = 0;
-			set_dma_ctrl(desc->p_fbd, ISI_DMA_CTRL_WB);
+			desc->p_fbd->dma_ctrl = ISI_DMA_CTRL_WB;
 
 			buf->p_dma_desc = desc;
 		}
-- 
1.9.1




More information about the linux-arm-kernel mailing list