Commit 778ad903 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Dave Airlie

drm: Remove some unused stuff from drm_plane

There's a bunch of unused members inside drm_plane, bloating the size of
the structure needlessly. Eliminate them.

v2: Remove all of it from kernel-doc too
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@gmail.com>
parent b72447cd
...@@ -1805,7 +1805,7 @@ int drm_mode_getplane(struct drm_device *dev, void *data, ...@@ -1805,7 +1805,7 @@ int drm_mode_getplane(struct drm_device *dev, void *data,
plane_resp->plane_id = plane->base.id; plane_resp->plane_id = plane->base.id;
plane_resp->possible_crtcs = plane->possible_crtcs; plane_resp->possible_crtcs = plane->possible_crtcs;
plane_resp->gamma_size = plane->gamma_size; plane_resp->gamma_size = 0;
/* /*
* This ioctl is called twice, once to determine how much space is * This ioctl is called twice, once to determine how much space is
......
...@@ -654,11 +654,7 @@ struct drm_plane_funcs { ...@@ -654,11 +654,7 @@ struct drm_plane_funcs {
* @format_count: number of formats supported * @format_count: number of formats supported
* @crtc: currently bound CRTC * @crtc: currently bound CRTC
* @fb: currently bound fb * @fb: currently bound fb
* @gamma_size: size of gamma table
* @gamma_store: gamma correction table
* @enabled: enabled flag
* @funcs: helper functions * @funcs: helper functions
* @helper_private: storage for drver layer
* @properties: property tracking for this plane * @properties: property tracking for this plane
*/ */
struct drm_plane { struct drm_plane {
...@@ -674,14 +670,7 @@ struct drm_plane { ...@@ -674,14 +670,7 @@ struct drm_plane {
struct drm_crtc *crtc; struct drm_crtc *crtc;
struct drm_framebuffer *fb; struct drm_framebuffer *fb;
/* CRTC gamma size for reporting to userspace */
uint32_t gamma_size;
uint16_t *gamma_store;
bool enabled;
const struct drm_plane_funcs *funcs; const struct drm_plane_funcs *funcs;
void *helper_private;
struct drm_object_properties properties; struct drm_object_properties properties;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment