From: Damien Lespiau Subject: Re: [PATCH 2/3] drm/i915: Convert DIP port switch cases to a simple macro Date: Mon, 10 Feb 2014 12:11:33 +0000 Message-ID: <20140210121133.GB9282@strange.amr.corp.intel.com> References: <1390511735-13677-1-git-send-email-ville.syrjala@linux.intel.com> <1390511735-13677-3-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 61A30FA5E7 for ; Mon, 10 Feb 2014 04:11:35 -0800 (PST) Content-Disposition: inline In-Reply-To: <1390511735-13677-3-git-send-email-ville.syrjala@linux.intel.com> 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: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Jan 23, 2014 at 11:15:34PM +0200, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > We have a couple of switch cases to compute the port value for the > VIDEO_DIP_CTL register. Replace them with a simple macro. > = > We do lose a few BUG() calls, but many people may consider that > an improvement. > = > Signed-off-by: Ville Syrj=E4l=E4 Reviewed-by: Damien Lespiau -- = Damien