summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_plane_helper.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2015-04-13 10:21:42 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-04-13 15:00:13 +0200
commit9a436ee6c3f311f2ae604d775d7de06a49f8c9a0 (patch)
tree19d66d3938f30d7e93912b4bd74c8fadf2945687 /include/drm/drm_plane_helper.h
parentdrm/armada: constify struct drm_encoder_helper_funcs pointer (diff)
downloadlinux-9a436ee6c3f311f2ae604d775d7de06a49f8c9a0.tar.xz
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_plane_helper.h')
-rw-r--r--include/drm/drm_plane_helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_plane_helper.h b/include/drm/drm_plane_helper.h
index e48157a5a59c..96e16283afb9 100644
--- a/include/drm/drm_plane_helper.h
+++ b/include/drm/drm_plane_helper.h
@@ -76,7 +76,7 @@ struct drm_plane_helper_funcs {
static inline void drm_plane_helper_add(struct drm_plane *plane,
const struct drm_plane_helper_funcs *funcs)
{
- plane->helper_private = (void *)funcs;
+ plane->helper_private = funcs;
}
extern int drm_plane_helper_check_update(struct drm_plane *plane,