summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_plane_helper.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2015-04-13 11:21:42 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-04-13 15:00:13 +0200
commit9a436ee6c3f311f2ae604d775d7de06a49f8c9a0 (patch)
tree19d66d3938f30d7e93912b4bd74c8fadf2945687 /include/drm/drm_plane_helper.h
parent0d4d936f49d3baa5e078ea6dafebcbdd3ec4449d (diff)
downloadop-kernel-dev-9a436ee6c3f311f2ae604d775d7de06a49f8c9a0.zip
op-kernel-dev-9a436ee6c3f311f2ae604d775d7de06a49f8c9a0.tar.gz
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 e48157a..96e1628 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,
OpenPOWER on IntegriCloud