diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-10-13 15:09:44 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-19 00:13:33 -0400 |
commit | 21c74a8ea8b47eb6c3c621e36578f6e27f65c5c7 (patch) | |
tree | c87eb392764e4bf2e8fe435d7bd70ddad7f75202 /drivers/gpu/drm/drm_fb_helper.c | |
parent | 99231028ff713820829b798d056c08a584281c25 (diff) |
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/drm_fb_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 8208e190faaa..d2849e4ea4d0 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c | |||
@@ -289,8 +289,7 @@ int drm_fb_helper_debug_enter(struct fb_info *info) | |||
289 | mode_set->fb, | 289 | mode_set->fb, |
290 | mode_set->x, | 290 | mode_set->x, |
291 | mode_set->y, | 291 | mode_set->y, |
292 | 1); | 292 | ENTER_ATOMIC_MODE_SET); |
293 | |||
294 | } | 293 | } |
295 | } | 294 | } |
296 | 295 | ||
@@ -336,7 +335,7 @@ int drm_fb_helper_debug_leave(struct fb_info *info) | |||
336 | 335 | ||
337 | drm_fb_helper_restore_lut_atomic(mode_set->crtc); | 336 | drm_fb_helper_restore_lut_atomic(mode_set->crtc); |
338 | funcs->mode_set_base_atomic(mode_set->crtc, fb, crtc->x, | 337 | funcs->mode_set_base_atomic(mode_set->crtc, fb, crtc->x, |
339 | crtc->y, 0); | 338 | crtc->y, LEAVE_ATOMIC_MODE_SET); |
340 | } | 339 | } |
341 | 340 | ||
342 | return 0; | 341 | return 0; |