From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Lespiau Subject: Re: [PATCH 1/8] drm/i915: Use IS_VALLEYVIEW() to test the is_valleyview flag Date: Tue, 17 Dec 2013 11:17:42 +0000 Message-ID: <20131217111742.GA30739@strange.amr.corp.intel.com> References: <1386859003-17246-1-git-send-email-damien.lespiau@intel.com> <1386859003-17246-2-git-send-email-damien.lespiau@intel.com> <20131217093848.GO9804@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id E6264FBF94 for ; Tue, 17 Dec 2013 03:18:10 -0800 (PST) Content-Disposition: inline In-Reply-To: <20131217093848.GO9804@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Dec 17, 2013 at 10:38:48AM +0100, Daniel Vetter wrote: > On Thu, Dec 12, 2013 at 02:36:36PM +0000, Damien Lespiau wrote: > > Signed-off-by: Damien Lespiau > > Merged this one here, not really sure what to do with the rest. So, apparently, there's some unhappiness with INTEL_INFO, which is somewhat understandable, it doesn't provide much more convenience than dev_priv->info. I can resend the series getting rid of INTEL_INFO() if the sentiment is shared. To provide the const safety, we can then declare the info struct as const in the private structure and cast it as non const at initialization time (as Ville suggests). -- Damien