summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2015-08-31 12:59:17 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:50:35 +0900
commitbbbde6c1afaa551d86de29c2feb0aa5554546e4a (patch)
tree49578552f07a9823bade7d01a31da0e498409e80
parentb0a95d71ac21cdef685abd0691891f318fd08435 (diff)
drm/exynos: rotator: remove unnecessary cur_buf_id
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>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_rotator.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
index bd38891da3db..3987928256ba 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
@@ -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 */