diff options
author | 2015-04-13 11:21:42 +0300 | |
---|---|---|
committer | 2015-04-13 15:00:13 +0200 | |
commit | 9a436ee6c3f311f2ae604d775d7de06a49f8c9a0 (patch) | |
tree | 19d66d3938f30d7e93912b4bd74c8fadf2945687 /include/drm/drm_crtc_helper.h | |
parent | drm/armada: constify struct drm_encoder_helper_funcs pointer (diff) | |
download | linux-9a436ee6c3f311f2ae604d775d7de06a49f8c9a0.tar.gz linux-9a436ee6c3f311f2ae604d775d7de06a49f8c9a0.tar.bz2 linux-9a436ee6c3f311f2ae604d775d7de06a49f8c9a0.zip |
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_helper.h')
-rw-r--r-- | include/drm/drm_crtc_helper.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/drm/drm_crtc_helper.h b/include/drm/drm_crtc_helper.h index 92d5135b55d2..c8fc187061de 100644 --- a/include/drm/drm_crtc_helper.h +++ b/include/drm/drm_crtc_helper.h @@ -197,19 +197,19 @@ extern void drm_helper_mode_fill_fb_struct(struct drm_framebuffer *fb, static inline void drm_crtc_helper_add(struct drm_crtc *crtc, const struct drm_crtc_helper_funcs *funcs) { - crtc->helper_private = (void *)funcs; + crtc->helper_private = funcs; } static inline void drm_encoder_helper_add(struct drm_encoder *encoder, const struct drm_encoder_helper_funcs *funcs) { - encoder->helper_private = (void *)funcs; + encoder->helper_private = funcs; } static inline void drm_connector_helper_add(struct drm_connector *connector, const struct drm_connector_helper_funcs *funcs) { - connector->helper_private = (void *)funcs; + connector->helper_private = funcs; } extern void drm_helper_resume_force_mode(struct drm_device *dev); |