diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-10-04 07:53:33 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-09 01:55:30 -0400 |
commit | ba0bf1200ec75722c558c56f58c596ff42a3b494 (patch) | |
tree | cc43f0514713de1793cd1ad7ae66fbc58192bc29 /drivers/gpu/drm/exynos | |
parent | 55e9edeb57ed9dd9be6773c5230187d701b14a46 (diff) |
drm: Make vblank_disable_allowed bool
vblank_disable_allowed is only ever 0 or 1, so make it a bool.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_vidi.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 868a14d52995..1648b40700e8 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -725,11 +725,11 @@ static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev) | |||
725 | drm_dev->irq_enabled = 1; | 725 | drm_dev->irq_enabled = 1; |
726 | 726 | ||
727 | /* | 727 | /* |
728 | * with vblank_disable_allowed = 1, vblank interrupt will be disabled | 728 | * with vblank_disable_allowed = true, vblank interrupt will be disabled |
729 | * by drm timer once a current process gives up ownership of | 729 | * by drm timer once a current process gives up ownership of |
730 | * vblank event.(after drm_vblank_put function is called) | 730 | * vblank event.(after drm_vblank_put function is called) |
731 | */ | 731 | */ |
732 | drm_dev->vblank_disable_allowed = 1; | 732 | drm_dev->vblank_disable_allowed = true; |
733 | 733 | ||
734 | /* attach this sub driver to iommu mapping if supported. */ | 734 | /* attach this sub driver to iommu mapping if supported. */ |
735 | if (is_drm_iommu_supported(drm_dev)) | 735 | if (is_drm_iommu_supported(drm_dev)) |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index 26e089f4ff1c..347aa40a94f5 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c | |||
@@ -392,11 +392,11 @@ static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev) | |||
392 | drm_dev->irq_enabled = 1; | 392 | drm_dev->irq_enabled = 1; |
393 | 393 | ||
394 | /* | 394 | /* |
395 | * with vblank_disable_allowed = 1, vblank interrupt will be disabled | 395 | * with vblank_disable_allowed = true, vblank interrupt will be disabled |
396 | * by drm timer once a current process gives up ownership of | 396 | * by drm timer once a current process gives up ownership of |
397 | * vblank event.(after drm_vblank_put function is called) | 397 | * vblank event.(after drm_vblank_put function is called) |
398 | */ | 398 | */ |
399 | drm_dev->vblank_disable_allowed = 1; | 399 | drm_dev->vblank_disable_allowed = true; |
400 | 400 | ||
401 | return 0; | 401 | return 0; |
402 | } | 402 | } |