intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: dri-devel@lists.freedesktop.org
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 7/7] drm: Remove some unused stuff from drm_plane
Date: Wed, 08 May 2013 14:41:09 +0200	[thread overview]
Message-ID: <1876492.8s97TbbtB8@avalon> (raw)
In-Reply-To: <1368006922-24957-8-git-send-email-ville.syrjala@linux.intel.com>

Hi Ville,

Thank you for the patch.

On Wednesday 08 May 2013 12:55:22 ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> There's a bunch of unused members inside drm_plane, bloating the size of
> the structure needlessly. Eliminate them.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>  drivers/gpu/drm/drm_crtc.c |  2 +-
>  include/drm/drm_crtc.h     | 10 ----------
>  2 files changed, 1 insertion(+), 11 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
> index d7c449f..e591914 100644
> --- a/drivers/gpu/drm/drm_crtc.c
> +++ b/drivers/gpu/drm/drm_crtc.c
> @@ -1739,7 +1739,7 @@ int drm_mode_getplane(struct drm_device *dev, void
> *data,
> 
>  	plane_resp->plane_id = plane->base.id;
>  	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
> diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
> index adb3f9b..99420c4 100644
> --- a/include/drm/drm_crtc.h
> +++ b/include/drm/drm_crtc.h
> @@ -654,9 +654,6 @@ struct drm_plane_funcs {
>   * @format_count: number of formats supported
>   * @crtc: currently bound CRTC
>   * @fb: currently bound fb
> - * @gamma_size: size of gamma table
> - * @gamma_store: gamma correction table
> - * @enabled: enabled flag
>   * @funcs: helper functions
>   * @helper_private: storage for drver layer

Shouldn't the above line be removed as well ?

>   * @properties: property tracking for this plane
> @@ -674,14 +671,7 @@ struct drm_plane {
>  	struct drm_crtc *crtc;
>  	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;
> -	void *helper_private;
> 
>  	struct drm_object_properties properties;
>  };

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2013-05-08 12:41 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-08  9:55 [PATCH 0/7] drm/i915: fbdev mode restoration improvements ville.syrjala
2013-05-08  9:55 ` [PATCH 1/7] drm: Add fb_helper->restore_fbdev_mode hook ville.syrjala
2013-05-08 12:42   ` Laurent Pinchart
2013-05-08 13:39     ` [PATCH v2] " ville.syrjala
2013-05-08 13:46       ` Ville Syrjälä
2013-05-08 13:52       ` Laurent Pinchart
2013-05-08  9:55 ` [PATCH 2/7] drm/i915: Don't enable cursors or sprites for fbdev ville.syrjala
2013-05-24  9:20   ` Daniel Vetter
2013-05-24  9:38     ` [Intel-gfx] " Ville Syrjälä
2013-05-08  9:55 ` [PATCH 3/7] drm/i915: Fix fbdev sprite disable code ville.syrjala
2013-05-24  9:21   ` Daniel Vetter
2013-05-24  9:35   ` Daniel Vetter
2013-05-24  9:59     ` Ville Syrjälä
2013-05-24 15:14       ` Daniel Vetter
2013-05-24 17:06         ` Ville Syrjälä
2013-05-24 20:24           ` Daniel Vetter
2013-05-08  9:55 ` [PATCH 4/7] drm/i915: Use a custom restore_fbdev_mode hook ville.syrjala
2013-05-08  9:55 ` [PATCH 5/7] drm/i915: Use container_of() in the fbdev code ville.syrjala
2013-05-08  9:55 ` [PATCH 6/7] drm/i915: s/drm_i915_private_t/struct drm_i915_private/ ville.syrjala
2013-05-08  9:55 ` [PATCH 7/7] drm: Remove some unused stuff from drm_plane ville.syrjala
2013-05-08 12:41   ` Laurent Pinchart [this message]
2013-05-08 13:40     ` [PATCH v2] " ville.syrjala
2013-05-08 13:52       ` Laurent Pinchart
2013-06-19  1:02         ` Laurent Pinchart
2013-05-23 13:38   ` [Intel-gfx] [PATCH 7/7] " Imre Deak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1876492.8s97TbbtB8@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).