diff options
| author | Thierry Reding <treding@nvidia.com> | 2014-06-27 11:19:23 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2014-07-07 21:31:15 -0400 |
| commit | 3a4938799dec32783759b0c66ee3bb8c82dd9937 (patch) | |
| tree | 73e2aa792cbc2048a0b662d2e9bdf874c5d6e5c1 /drivers/gpu/drm/cirrus | |
| parent | 50c3dc970a09b3b60422a58934cc27a413288bab (diff) | |
drm: Constify struct drm_fb_helper_funcs
There's no need for this to be modifiable. Make it const so that it can
be put into the .rodata section.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/cirrus')
| -rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_fbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c index 32bbba0a787b..2bd0291168e4 100644 --- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c +++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c | |||
| @@ -288,7 +288,7 @@ static int cirrus_fbdev_destroy(struct drm_device *dev, | |||
| 288 | return 0; | 288 | return 0; |
| 289 | } | 289 | } |
| 290 | 290 | ||
| 291 | static struct drm_fb_helper_funcs cirrus_fb_helper_funcs = { | 291 | static const struct drm_fb_helper_funcs cirrus_fb_helper_funcs = { |
| 292 | .gamma_set = cirrus_crtc_fb_gamma_set, | 292 | .gamma_set = cirrus_crtc_fb_gamma_set, |
| 293 | .gamma_get = cirrus_crtc_fb_gamma_get, | 293 | .gamma_get = cirrus_crtc_fb_gamma_get, |
| 294 | .fb_probe = cirrusfb_create, | 294 | .fb_probe = cirrusfb_create, |
