From: Sascha Hauer Subject: Re: [PATCH 14/20] drm: add convenience function to create an enum property Date: Wed, 1 Feb 2012 12:53:46 +0100 Message-ID: <20120201115346.GQ1990@pengutronix.de> References: <1328092718-28951-1-git-send-email-s.hauer@pengutronix.de> <1328092718-28951-15-git-send-email-s.hauer@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by gabe.freedesktop.org (Postfix) with ESMTP id DC448A0AB9 for ; Wed, 1 Feb 2012 03:53:50 -0800 (PST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Chris Wilson Cc: kernel@pengutronix.de, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Wed, Feb 01, 2012 at 11:48:53AM +0000, Chris Wilson wrote: > On Wed, 1 Feb 2012 11:38:32 +0100, Sascha Hauer wrote: > > Creating an enum property is a common pattern, so create > > a convenience function for this and use it where appropriate. > > Similar naming comments apply as for drm_property_create_range. Indeed, drm_property_create_range sounds better. Will change. > However, > I did spot something anomalous... > > > diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h > > index 8d593ad..cdbbb40 100644 > > --- a/include/drm/drm_crtc.h > > +++ b/include/drm/drm_crtc.h > > @@ -394,7 +394,7 @@ struct drm_crtc { > > s64 framedur_ns, linedur_ns, pixeldur_ns; > > > > /* if you are using the helper */ > > - void *helper_private; > > + struct drm_crtc_helper_funcs *helper_private; > > }; > > > > > > @@ -481,7 +481,7 @@ struct drm_encoder { > > > > struct drm_crtc *crtc; > > const struct drm_encoder_funcs *funcs; > > - void *helper_private; > > + struct drm_encoder_helper_funcs *helper_private; > > }; > > > > enum drm_connector_force { > > @@ -573,7 +573,7 @@ struct drm_connector { > > /* requested DPMS state */ > > int dpms; > > > > - void *helper_private; > > + struct drm_connector_helper_funcs *helper_private; > > > > /* forced on connector */ > > enum drm_connector_force force; > > This is a separate chunk. I know I created this chunk but couldn't find it in my commits. You found it ;). yes, should be a seperate patch. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |