From: Jesse Barnes Subject: Re: [PATCH 04/12] drm: remove unused save/restore fields from drm_connector & fix comments Date: Mon, 7 Nov 2011 12:35:16 -0800 Message-ID: <20111107123516.5124aac1@jbarnes-desktop> References: <1320696203-5524-1-git-send-email-jbarnes@virtuousgeek.org> <1320696203-5524-5-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0030695984==" Return-path: Received: from oproxy8-pub.bluehost.com (oproxy8-pub.bluehost.com [69.89.22.20]) by gabe.freedesktop.org (Postfix) with SMTP id E32589E78C for ; Mon, 7 Nov 2011 12:35:21 -0800 (PST) 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: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0030695984== Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/9xHzP3zSVXinOgqX=vb2n43"; protocol="application/pgp-signature" --Sig_/9xHzP3zSVXinOgqX=vb2n43 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 07 Nov 2011 20:26:59 +0000 Chris Wilson wrote: > On Mon, 7 Nov 2011 12:03:15 -0800, Jesse Barnes wrote: > > Also fix up the wrapping to 80 columns. > >=20 > > Signed-off-by: Jesse Barnes > > --- > > include/drm/drm_crtc.h | 20 +++++++------------- > > 1 files changed, 7 insertions(+), 13 deletions(-) > >=20 > > diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h > > index ad2a605..6ab20f8 100644 > > --- a/include/drm/drm_crtc.h > > +++ b/include/drm/drm_crtc.h > > @@ -386,26 +386,19 @@ struct drm_crtc { > > /** > > * drm_connector_funcs - control connectors on a given device > > * @dpms: set power state (see drm_crtc_funcs above) > > - * @save: save connector state > > - * @restore: restore connector state > > * @reset: reset connector after state has been invalidate (e.g. resum= e) > > - * @mode_valid: is this mode valid on the given connector? > > - * @mode_fixup: try to fixup proposed mode for this connector > > - * @mode_set: set this mode > > * @detect: is this connector active? > > - * @get_modes: get mode list for this connector > > + * @fill_modes: build a mode list for this connector > > * @set_property: property for this connector may need update > > * @destroy: make object go away > > * @force: notify the driver the connector is forced on > > * > > * Each CRTC may have one or more connectors attached to it. The func= tions > > - * below allow the core DRM code to control connectors, enumerate avai= lable modes, > > - * etc. > > + * below allow the core DRM code to control connectors, enumerate avai= lable > > + * modes, etc. > > */ > > struct drm_connector_funcs { > > void (*dpms)(struct drm_connector *connector, int mode); > > - void (*save)(struct drm_connector *connector); > > - void (*restore)(struct drm_connector *connector); > > void (*reset)(struct drm_connector *connector); > > =20 > > /* Check to see if anything is attached to the connector. > > @@ -416,9 +409,10 @@ struct drm_connector_funcs { > > */ > > enum drm_connector_status (*detect)(struct drm_connector *connector, > > bool force); > > - int (*fill_modes)(struct drm_connector *connector, uint32_t max_width= , uint32_t max_height); > > - int (*set_property)(struct drm_connector *connector, struct drm_prope= rty *property, > > - uint64_t val); > > + int (*fill_modes)(struct drm_connector *connector, uint32_t max_width, > > + uint32_t max_height); >=20 > Attack of the random 80-column limit! >=20 > int (*fill_modes)(struct drm_connector *connector, > uint32_t max_width, uint32_t max_height); >=20 > keeps the logically more connected width&height together. >=20 > What colour do you want your bikeshed today? /me burns down the bikeshed. --=20 Jesse Barnes, Intel Open Source Technology Center --Sig_/9xHzP3zSVXinOgqX=vb2n43 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJOuEEFAAoJEIEoDkX4Qk9hTHMP/3z1s/+bfxSbkfHyiaSINfFG ImjadRhowAaDWi3v8JvZTmjQzJ+RRRDQadL6MvY6gpPYUDEeJtBmIvwLHdqTXhl1 hAlkg/IWY4HbTkvjp687+SezikHq2/63nsxXGs7kl6s+CMW0lLCGbpIO6R8GBmdg a8IJVHyH4mJi0s2Irndtp3eUrdZxk2BiCuTITeTXPpiWFSao8yL74Cj4LacpUPt1 sKurVt0HRWxoZhULqMPh4S+hVdhktc1k9vKUxsqVufupqv+fYv1aZOjUSqxN+Vc/ G1UUfx55+agevi1ZE1gUWZbOqil02YcKSZsPVy5DgGAOrf2KQpZTY0R5zDMgxcDG gff6wtLWvjQbfhUxzGFD8nHndKv2M7UaxSNxhKIg7ZKTELuh2ZmBmWfAcfhbmH21 V8uinPBJRK+4K2zRwhDaurjp+QJC0v9btZ+u+vGB9Hi0crNx9UpY9F1lDRVguzWK YOMUKzsyC+HdFb+3WQl9ITjkUVx5+KE74Ujg/hku51zeEKCG60C0EO/VUQ3GdxbX pFKVHeh+CJuwaDzHv5AHh0Ef1jAx+brN5q5s80oEzeP6hnFKhk2ARW7C2EGa9RXF lBffAp+LyUYnIeN5uX7JN9fO5ydLTEtvPzUOcIr7n8IrUvkSbzVqYPvhlpFlrdfv KJQFjEKOWof76Jql6zE5 =vLDS -----END PGP SIGNATURE----- --Sig_/9xHzP3zSVXinOgqX=vb2n43-- --===============0030695984== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0030695984==--