diff options
author | Jani Nikula <jani.nikula@intel.com> | 2015-03-11 05:51:06 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-04-07 12:11:25 -0400 |
commit | be26a66de5f5722388966a62d772df832818bcb9 (patch) | |
tree | d004bf6ddcb0069e3d6e5879ebe95ed3c1e37980 /drivers/gpu/drm/drm_fb_helper.c | |
parent | 71279a11380faabf70ea2827dc168b4156a10971 (diff) |
drm/drm: constify all struct drm_*_helper funcs pointers
They are not to be modified.
Generated using the semantic patch:
@@
@@
(
const struct drm_crtc_helper_funcs *
|
- struct drm_crtc_helper_funcs *
+ const struct drm_crtc_helper_funcs *
)
@@
@@
(
const struct drm_encoder_helper_funcs *
|
- struct drm_encoder_helper_funcs *
+ const struct drm_encoder_helper_funcs *
)
@@
@@
(
const struct drm_connector_helper_funcs *
|
- struct drm_connector_helper_funcs *
+ const struct drm_connector_helper_funcs *
)
@@
@@
(
const struct drm_plane_helper_funcs *
|
- struct drm_plane_helper_funcs *
+ const struct drm_plane_helper_funcs *
)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_fb_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 309b9476fe96..cac422916c7a 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c | |||
@@ -238,7 +238,7 @@ static void drm_fb_helper_restore_lut_atomic(struct drm_crtc *crtc) | |||
238 | int drm_fb_helper_debug_enter(struct fb_info *info) | 238 | int drm_fb_helper_debug_enter(struct fb_info *info) |
239 | { | 239 | { |
240 | struct drm_fb_helper *helper = info->par; | 240 | struct drm_fb_helper *helper = info->par; |
241 | struct drm_crtc_helper_funcs *funcs; | 241 | const struct drm_crtc_helper_funcs *funcs; |
242 | int i; | 242 | int i; |
243 | 243 | ||
244 | list_for_each_entry(helper, &kernel_fb_helper_list, kernel_fb_list) { | 244 | list_for_each_entry(helper, &kernel_fb_helper_list, kernel_fb_list) { |
@@ -285,7 +285,7 @@ int drm_fb_helper_debug_leave(struct fb_info *info) | |||
285 | { | 285 | { |
286 | struct drm_fb_helper *helper = info->par; | 286 | struct drm_fb_helper *helper = info->par; |
287 | struct drm_crtc *crtc; | 287 | struct drm_crtc *crtc; |
288 | struct drm_crtc_helper_funcs *funcs; | 288 | const struct drm_crtc_helper_funcs *funcs; |
289 | struct drm_framebuffer *fb; | 289 | struct drm_framebuffer *fb; |
290 | int i; | 290 | int i; |
291 | 291 | ||
@@ -765,7 +765,7 @@ int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info) | |||
765 | { | 765 | { |
766 | struct drm_fb_helper *fb_helper = info->par; | 766 | struct drm_fb_helper *fb_helper = info->par; |
767 | struct drm_device *dev = fb_helper->dev; | 767 | struct drm_device *dev = fb_helper->dev; |
768 | struct drm_crtc_helper_funcs *crtc_funcs; | 768 | const struct drm_crtc_helper_funcs *crtc_funcs; |
769 | u16 *red, *green, *blue, *transp; | 769 | u16 *red, *green, *blue, *transp; |
770 | struct drm_crtc *crtc; | 770 | struct drm_crtc *crtc; |
771 | int i, j, rc = 0; | 771 | int i, j, rc = 0; |
@@ -1551,7 +1551,7 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper, | |||
1551 | int c, o; | 1551 | int c, o; |
1552 | struct drm_device *dev = fb_helper->dev; | 1552 | struct drm_device *dev = fb_helper->dev; |
1553 | struct drm_connector *connector; | 1553 | struct drm_connector *connector; |
1554 | struct drm_connector_helper_funcs *connector_funcs; | 1554 | const struct drm_connector_helper_funcs *connector_funcs; |
1555 | struct drm_encoder *encoder; | 1555 | struct drm_encoder *encoder; |
1556 | int my_score, best_score, score; | 1556 | int my_score, best_score, score; |
1557 | struct drm_fb_helper_crtc **crtcs, *crtc; | 1557 | struct drm_fb_helper_crtc **crtcs, *crtc; |