diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-10-13 14:09:44 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-19 14:13:33 +1000 |
commit | 21c74a8ea8b47eb6c3c621e36578f6e27f65c5c7 (patch) | |
tree | c87eb392764e4bf2e8fe435d7bd70ddad7f75202 /drivers/gpu/drm/nouveau/nv04_crtc.c | |
parent | 99231028ff713820829b798d056c08a584281c25 (diff) | |
download | blackbird-op-linux-21c74a8ea8b47eb6c3c621e36578f6e27f65c5c7.tar.gz blackbird-op-linux-21c74a8ea8b47eb6c3c621e36578f6e27f65c5c7.zip |
drm, kdb, kms: Change mode_set_base_atomic() enter argument to be an enum
The enter argument as implemented by commit 413d45d3627 (drm, kdb, kms:
Add an enter argument to mode_set_base_atomic() API) should be more
descriptive as to what it does vs just passing 1 and 0 around.
There is no runtime behavior change as a result of this patch.
Reported-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
CC: David Airlie <airlied@linux.ie>
CC: dri-devel@lists.freedesktop.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_crtc.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv04_crtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_crtc.c b/drivers/gpu/drm/nouveau/nv04_crtc.c index 17f7cf0c11a8..c71abc2a34d5 100644 --- a/drivers/gpu/drm/nouveau/nv04_crtc.c +++ b/drivers/gpu/drm/nouveau/nv04_crtc.c @@ -860,12 +860,12 @@ nv04_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y, static int nv04_crtc_mode_set_base_atomic(struct drm_crtc *crtc, struct drm_framebuffer *fb, - int x, int y, int enter) + int x, int y, enum mode_set_atomic state) { struct drm_nouveau_private *dev_priv = crtc->dev->dev_private; struct drm_device *dev = dev_priv->dev; - if (enter) + if (state == ENTER_ATOMIC_MODE_SET) nouveau_fbcon_save_disable_accel(dev); else nouveau_fbcon_restore_accel(dev); |