From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 02/10] drm/i915/lvds: Introduce intel_lvds_connector Date: Fri, 22 Apr 2011 19:07:39 +0100 Message-ID: References: <1303463958-17128-1-git-send-email-chris@chris-wilson.co.uk> <1303463958-17128-3-git-send-email-chris@chris-wilson.co.uk> <20110422175046.GD27642@bwgnt.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C46A9E807 for ; Fri, 22 Apr 2011 11:07:43 -0700 (PDT) In-Reply-To: <20110422175046.GD27642@bwgnt.jf.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Ben Widawsky Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 22 Apr 2011 10:50:47 -0700, Ben Widawsky wrote: > How about to save some eyestrain, using some macro helpers? > > struct intel_lvds_connector { > struct intel_connector base; > #define drm_base \ > base.base > #define drm_dev \ > drm_base.dev > #define drm_funcs \ > drm_base.funcs > }; > > Similarly with lvds_encoder, and intel_dp structures if you so desire. I'm always a little wary about macros to hide details of the structure, they make the relationships less discoverable. Fortunately, by the end of the series most of the eye sores have gone. -Chris -- Chris Wilson, Intel Open Source Technology Centre