diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-05-17 07:27:23 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-22 05:35:07 -0400 |
commit | e6ecefaadfcdb03db8ac9e739b4ba7a93a8811b3 (patch) | |
tree | c24f4b93e492437d4ec88f00b65b3d400bfb5aee /drivers/gpu/drm/gma500/framebuffer.c | |
parent | 78b68556a964e74fb803b08c5b2d9c6ba3ec3787 (diff) |
drm: Constify drm_mode_config_funcs pointer
The DRM mode config functions structure declared by drivers and pointed
to by the drm_mode_config funcs field is never modified. Make it a const
pointer.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Cc: Rob Clark <rob.clark@linaro.org>
Reviwed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/framebuffer.c')
-rw-r--r-- | drivers/gpu/drm/gma500/framebuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c index 09cd23cc05a8..5732b5702e1c 100644 --- a/drivers/gpu/drm/gma500/framebuffer.c +++ b/drivers/gpu/drm/gma500/framebuffer.c | |||
@@ -782,7 +782,7 @@ void psb_modeset_init(struct drm_device *dev) | |||
782 | dev->mode_config.min_width = 0; | 782 | dev->mode_config.min_width = 0; |
783 | dev->mode_config.min_height = 0; | 783 | dev->mode_config.min_height = 0; |
784 | 784 | ||
785 | dev->mode_config.funcs = (void *) &psb_mode_funcs; | 785 | dev->mode_config.funcs = &psb_mode_funcs; |
786 | 786 | ||
787 | /* set memory base */ | 787 | /* set memory base */ |
788 | /* Oaktrail and Poulsbo should use BAR 2*/ | 788 | /* Oaktrail and Poulsbo should use BAR 2*/ |