drm/exynos: rotator: remove unnecessary cur_buf_id
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 31 Aug 2015 03:59:17 +0000 (12:59 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 16 May 2016 07:20:41 +0000 (09:20 +0200)
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 bd38891..3987928 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 */