drm/exynos: rotator: remove unnecessary cur_buf_id 18/47118/2 accepted/tizen/mobile/20150902.004628 accepted/tizen/tv/20150902.004649 accepted/tizen/wearable/20150902.004712 submit/tizen/20150901.112943
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 31 Aug 2015 03:59:17 +0000 (12:59 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 1 Sep 2015 11:23:28 +0000 (04:23 -0700)
After commit 2af026584c81faa37f26b86713d6331ddf70e3f3,
'drm/exynos: ipp: introduce last_buf_id', each driver do not need
to handler buf_id for the event. So this patch removes unnecessary
cur_buf_id from rotator.

Change-Id: Idd80765c41260ae6ce4488e56b0d4beaea76229a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_rotator.c

index 425e7062538812c0613c055b9b4fdeea709c4be0..9f150d08de080c25237be85b1a62fe7bf8b30e6a 100644 (file)
@@ -88,7 +88,6 @@ struct rot_limit_table {
  * @clock: rotator gate clock.
  * @limit_tbl: limitation of rotator.
  * @irq: irq number.
- * @cur_buf_id: current operation buffer id.
  * @suspended: suspended state.
  */
 struct rot_context {
@@ -98,7 +97,6 @@ struct rot_context {
        struct clk      *clock;
        struct rot_limit_table  *limit_tbl;
        int     irq;
-       int     cur_buf_id[EXYNOS_DRM_OPS_MAX];
        bool    suspended;
 };
 
@@ -154,8 +152,6 @@ static irqreturn_t rotator_irq_handler(int irq, void *arg)
 
        if (irq_status == ROT_IRQ_STATUS_COMPLETE) {
                event_work->ippdrv = ippdrv;
-               event_work->buf_id[EXYNOS_DRM_OPS_DST] =
-                       rot->cur_buf_id[EXYNOS_DRM_OPS_DST];
                queue_work(ippdrv->event_workq, &event_work->work);
        } else {
                DRM_ERROR("the SFR is set illegally\n");
@@ -275,9 +271,6 @@ static int rotator_src_set_addr(struct device *dev,
        u32 val, fmt, hsize, vsize;
        int i;
 
-       /* Set current buf_id */
-       rot->cur_buf_id[EXYNOS_DRM_OPS_SRC] = buf_id;
-
        switch (buf_type) {
        case IPP_BUF_ENQUEUE:
                /* Set address configuration */
@@ -410,9 +403,6 @@ static int rotator_dst_set_addr(struct device *dev,
        u32 val, fmt, hsize, vsize;
        int i;
 
-       /* Set current buf_id */
-       rot->cur_buf_id[EXYNOS_DRM_OPS_DST] = buf_id;
-
        switch (buf_type) {
        case IPP_BUF_ENQUEUE:
                /* Set address configuration */