[media] omap3isp: Rename isp_buffer isp_addr field to dma
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 9 Mar 2014 23:17:12 +0000 (20:17 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 25 May 2014 14:40:09 +0000 (11:40 -0300)
No functional changes.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/omap3isp/ispccdc.c
drivers/media/platform/omap3isp/ispccp2.c
drivers/media/platform/omap3isp/ispcsi2.c
drivers/media/platform/omap3isp/isppreview.c
drivers/media/platform/omap3isp/ispresizer.c
drivers/media/platform/omap3isp/ispvideo.c
drivers/media/platform/omap3isp/ispvideo.h

index 004a4f52d9d7e41964147caa2a69740900c88cd9..9f727d20f06d98298dcf36a4e0a9e8390ad2d9da 100644 (file)
@@ -1521,7 +1521,7 @@ static int ccdc_isr_buffer(struct isp_ccdc_device *ccdc)
 
        buffer = omap3isp_video_buffer_next(&ccdc->video_out);
        if (buffer != NULL) {
-               ccdc_set_outaddr(ccdc, buffer->isp_addr);
+               ccdc_set_outaddr(ccdc, buffer->dma);
                restart = 1;
        }
 
@@ -1660,7 +1660,7 @@ static int ccdc_video_queue(struct isp_video *video, struct isp_buffer *buffer)
        if (!(ccdc->output & CCDC_OUTPUT_MEMORY))
                return -ENODEV;
 
-       ccdc_set_outaddr(ccdc, buffer->isp_addr);
+       ccdc_set_outaddr(ccdc, buffer->dma);
 
        /* We now have a buffer queued on the output, restart the pipeline
         * on the next CCDC interrupt if running in continuous mode (or when
index b30b67d22a58cfb83990b589926be86c95d8c2bc..f3801db9095ca301bf53e564e9d9f4eb33a13327 100644 (file)
@@ -549,7 +549,7 @@ static void ccp2_isr_buffer(struct isp_ccp2_device *ccp2)
 
        buffer = omap3isp_video_buffer_next(&ccp2->video_in);
        if (buffer != NULL)
-               ccp2_set_inaddr(ccp2, buffer->isp_addr);
+               ccp2_set_inaddr(ccp2, buffer->dma);
 
        pipe->state |= ISP_PIPELINE_IDLE_INPUT;
 
@@ -940,7 +940,7 @@ static int ccp2_video_queue(struct isp_video *video, struct isp_buffer *buffer)
 {
        struct isp_ccp2_device *ccp2 = &video->isp->isp_ccp2;
 
-       ccp2_set_inaddr(ccp2, buffer->isp_addr);
+       ccp2_set_inaddr(ccp2, buffer->dma);
        return 0;
 }
 
index 620560828a48cc9d395bfba0ddbb2c7f017ed84b..5a2e47e58b846543f651d38acf5fba05012e2c3e 100644 (file)
@@ -695,7 +695,7 @@ static void csi2_isr_buffer(struct isp_csi2_device *csi2)
        if (buffer == NULL)
                return;
 
-       csi2_set_outaddr(csi2, buffer->isp_addr);
+       csi2_set_outaddr(csi2, buffer->dma);
        csi2_ctx_enable(isp, csi2, 0, 1);
 }
 
@@ -812,7 +812,7 @@ static int csi2_queue(struct isp_video *video, struct isp_buffer *buffer)
        struct isp_device *isp = video->isp;
        struct isp_csi2_device *csi2 = &isp->isp_csi2a;
 
-       csi2_set_outaddr(csi2, buffer->isp_addr);
+       csi2_set_outaddr(csi2, buffer->dma);
 
        /*
         * If streaming was enabled before there was a buffer queued
index 395b2b068c7553eb27a544dab4953040563a7119..720809b07e75f4779f20da64aa1b0af498bad012 100644 (file)
@@ -1499,14 +1499,14 @@ static void preview_isr_buffer(struct isp_prev_device *prev)
        if (prev->input == PREVIEW_INPUT_MEMORY) {
                buffer = omap3isp_video_buffer_next(&prev->video_in);
                if (buffer != NULL)
-                       preview_set_inaddr(prev, buffer->isp_addr);
+                       preview_set_inaddr(prev, buffer->dma);
                pipe->state |= ISP_PIPELINE_IDLE_INPUT;
        }
 
        if (prev->output & PREVIEW_OUTPUT_MEMORY) {
                buffer = omap3isp_video_buffer_next(&prev->video_out);
                if (buffer != NULL) {
-                       preview_set_outaddr(prev, buffer->isp_addr);
+                       preview_set_outaddr(prev, buffer->dma);
                        restart = 1;
                }
                pipe->state |= ISP_PIPELINE_IDLE_OUTPUT;
@@ -1577,10 +1577,10 @@ static int preview_video_queue(struct isp_video *video,
        struct isp_prev_device *prev = &video->isp->isp_prev;
 
        if (video->type == V4L2_BUF_TYPE_VIDEO_OUTPUT)
-               preview_set_inaddr(prev, buffer->isp_addr);
+               preview_set_inaddr(prev, buffer->dma);
 
        if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
-               preview_set_outaddr(prev, buffer->isp_addr);
+               preview_set_outaddr(prev, buffer->dma);
 
        return 0;
 }
index 86369df81d7481fbcdece03d1653baa3fe8b6d43..6f077c2377db6a7b785f1f8a4b688c2996c0d2b1 100644 (file)
@@ -1040,7 +1040,7 @@ static void resizer_isr_buffer(struct isp_res_device *res)
         */
        buffer = omap3isp_video_buffer_next(&res->video_out);
        if (buffer != NULL) {
-               resizer_set_outaddr(res, buffer->isp_addr);
+               resizer_set_outaddr(res, buffer->dma);
                restart = 1;
        }
 
@@ -1049,7 +1049,7 @@ static void resizer_isr_buffer(struct isp_res_device *res)
        if (res->input == RESIZER_INPUT_MEMORY) {
                buffer = omap3isp_video_buffer_next(&res->video_in);
                if (buffer != NULL)
-                       resizer_set_inaddr(res, buffer->isp_addr);
+                       resizer_set_inaddr(res, buffer->dma);
                pipe->state |= ISP_PIPELINE_IDLE_INPUT;
        }
 
@@ -1101,7 +1101,7 @@ static int resizer_video_queue(struct isp_video *video,
        struct isp_res_device *res = &video->isp->isp_res;
 
        if (video->type == V4L2_BUF_TYPE_VIDEO_OUTPUT)
-               resizer_set_inaddr(res, buffer->isp_addr);
+               resizer_set_inaddr(res, buffer->dma);
 
        /*
         * We now have a buffer queued on the output. Despite what the
@@ -1116,7 +1116,7 @@ static int resizer_video_queue(struct isp_video *video,
         * continuous mode or when starting the stream.
         */
        if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
-               resizer_set_outaddr(res, buffer->isp_addr);
+               resizer_set_outaddr(res, buffer->dma);
 
        return 0;
 }
index c4a2f76f87054bdfc7106163e66c2854e1bda777..e36bac26476c0fd7ac382f5e85effc07a7a0b202 100644 (file)
@@ -374,7 +374,7 @@ static int isp_video_buffer_prepare(struct vb2_buffer *buf)
        }
 
        vb2_set_plane_payload(&buffer->vb, 0, vfh->format.fmt.pix.sizeimage);
-       buffer->isp_addr = addr;
+       buffer->dma = addr;
 
        return 0;
 }
index 1015505963a41684ea35140fad6a648a67aec2bc..7d2e82122ecda431d417ae10ba8193b9fb9154ec 100644 (file)
@@ -127,12 +127,12 @@ static inline int isp_pipeline_ready(struct isp_pipeline *pipe)
  * struct isp_buffer - ISP video buffer
  * @vb: videobuf2 buffer
  * @irqlist: List head for insertion into IRQ queue
- * @isp_addr: DMA address
+ * @dma: DMA address
  */
 struct isp_buffer {
        struct vb2_buffer vb;
        struct list_head irqlist;
-       dma_addr_t isp_addr;
+       dma_addr_t dma;
 };
 
 #define to_isp_buffer(buf)     container_of(buf, struct isp_buffer, vb)