diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2014-08-28 13:07:33 +0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-09-19 19:56:12 +0400 |
commit | 05afb1ac5391a65b0f7e024064ab8f56397f6559 (patch) | |
tree | 04ff991482432c71ae1df4359ba3b4a6b4c69a75 /drivers/gpu/drm/exynos/exynos_drm_gsc.c | |
parent | 22e816f87cb0c0a4e507ec7a26cb08bfeef2daa4 (diff) | |
download | linux-05afb1ac5391a65b0f7e024064ab8f56397f6559.tar.xz |
drm/exynos/ipp: replace work_struct casting with better constructs
Type casting should be avoided if possible. In case of
work_struct it can be simply replaced by reference to member field.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_gsc.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gsc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index 9e3ff1672965..c6a013fc321c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c @@ -1326,8 +1326,7 @@ static irqreturn_t gsc_irq_handler(int irq, void *dev_id) buf_id[EXYNOS_DRM_OPS_SRC]; event_work->buf_id[EXYNOS_DRM_OPS_DST] = buf_id[EXYNOS_DRM_OPS_DST]; - queue_work(ippdrv->event_workq, - (struct work_struct *)event_work); + queue_work(ippdrv->event_workq, &event_work->work); } return IRQ_HANDLED; |