diff options
author | Jani Nikula <jani.nikula@intel.com> | 2015-04-13 04:21:42 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-04-13 09:00:13 -0400 |
commit | 9a436ee6c3f311f2ae604d775d7de06a49f8c9a0 (patch) | |
tree | 19d66d3938f30d7e93912b4bd74c8fadf2945687 /include/drm/drm_crtc.h | |
parent | 0d4d936f49d3baa5e078ea6dafebcbdd3ec4449d (diff) |
drm: make crtc/encoder/connector/plane helper_private a const pointer
They're only used to store const pointers anyway. This helps to keep
Ville and the compiler happy.
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 'include/drm/drm_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 7b5c661b37d8..97c33b40005f 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -467,7 +467,7 @@ struct drm_crtc { | |||
467 | int framedur_ns, linedur_ns, pixeldur_ns; | 467 | int framedur_ns, linedur_ns, pixeldur_ns; |
468 | 468 | ||
469 | /* if you are using the helper */ | 469 | /* if you are using the helper */ |
470 | void *helper_private; | 470 | const void *helper_private; |
471 | 471 | ||
472 | struct drm_object_properties properties; | 472 | struct drm_object_properties properties; |
473 | 473 | ||
@@ -597,7 +597,7 @@ struct drm_encoder { | |||
597 | struct drm_crtc *crtc; | 597 | struct drm_crtc *crtc; |
598 | struct drm_bridge *bridge; | 598 | struct drm_bridge *bridge; |
599 | const struct drm_encoder_funcs *funcs; | 599 | const struct drm_encoder_funcs *funcs; |
600 | void *helper_private; | 600 | const void *helper_private; |
601 | }; | 601 | }; |
602 | 602 | ||
603 | /* should we poll this connector for connects and disconnects */ | 603 | /* should we poll this connector for connects and disconnects */ |
@@ -701,7 +701,7 @@ struct drm_connector { | |||
701 | /* requested DPMS state */ | 701 | /* requested DPMS state */ |
702 | int dpms; | 702 | int dpms; |
703 | 703 | ||
704 | void *helper_private; | 704 | const void *helper_private; |
705 | 705 | ||
706 | /* forced on connector */ | 706 | /* forced on connector */ |
707 | struct drm_cmdline_mode cmdline_mode; | 707 | struct drm_cmdline_mode cmdline_mode; |
@@ -864,7 +864,7 @@ struct drm_plane { | |||
864 | 864 | ||
865 | enum drm_plane_type type; | 865 | enum drm_plane_type type; |
866 | 866 | ||
867 | void *helper_private; | 867 | const void *helper_private; |
868 | 868 | ||
869 | struct drm_plane_state *state; | 869 | struct drm_plane_state *state; |
870 | }; | 870 | }; |