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 /include/drm | |
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 'include/drm')
-rw-r--r-- | include/drm/drm_crtc_helper.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/drm/drm_crtc_helper.h b/include/drm/drm_crtc_helper.h index 6a9f3935ea0b..73b071203dcc 100644 --- a/include/drm/drm_crtc_helper.h +++ b/include/drm/drm_crtc_helper.h | |||
@@ -39,6 +39,11 @@ | |||
39 | 39 | ||
40 | #include <linux/fb.h> | 40 | #include <linux/fb.h> |
41 | 41 | ||
42 | enum mode_set_atomic { | ||
43 | LEAVE_ATOMIC_MODE_SET, | ||
44 | ENTER_ATOMIC_MODE_SET, | ||
45 | }; | ||
46 | |||
42 | struct drm_crtc_helper_funcs { | 47 | struct drm_crtc_helper_funcs { |
43 | /* | 48 | /* |
44 | * Control power levels on the CRTC. If the mode passed in is | 49 | * Control power levels on the CRTC. If the mode passed in is |
@@ -62,7 +67,7 @@ struct drm_crtc_helper_funcs { | |||
62 | struct drm_framebuffer *old_fb); | 67 | struct drm_framebuffer *old_fb); |
63 | int (*mode_set_base_atomic)(struct drm_crtc *crtc, | 68 | int (*mode_set_base_atomic)(struct drm_crtc *crtc, |
64 | struct drm_framebuffer *fb, int x, int y, | 69 | struct drm_framebuffer *fb, int x, int y, |
65 | int is_enter); | 70 | enum mode_set_atomic); |
66 | 71 | ||
67 | /* reload the current crtc LUT */ | 72 | /* reload the current crtc LUT */ |
68 | void (*load_lut)(struct drm_crtc *crtc); | 73 | void (*load_lut)(struct drm_crtc *crtc); |