From patchwork Thu Aug 25 04:05:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 1095192 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7P4551O027985 for ; Thu, 25 Aug 2011 04:05:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750728Ab1HYEFF (ORCPT ); Thu, 25 Aug 2011 00:05:05 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:36616 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750747Ab1HYEFE (ORCPT ); Thu, 25 Aug 2011 00:05:04 -0400 Received: by ywf7 with SMTP id 7so1410767ywf.19 for ; Wed, 24 Aug 2011 21:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:sender:message-id:to:cc:in-reply-to:references:from:subject :user-agent:mime-version:content-type; bh=dgzdF2uxC+qOuEQQ/UMOpGlXa4gnVTlj86LF0XiSY8U=; b=JqB3WBhTgQe/TLWux6iVidru0zBRvsaj0SbCiZgLUQoCx5vIFS9vBUz42HLWu+s/Az cGJFnocvzVB9OW5NTwxtjeAV6y15smfUu99eeG751HhFi0GUk4XbGYFK4XR2zvz213vq oNaaaM3DeMpodwudEfmoQ8OqvEL4yfrEx8YtI= Received: by 10.231.62.202 with SMTP id y10mr11536260ibh.95.1314245104319; Wed, 24 Aug 2011 21:05:04 -0700 (PDT) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id bu8sm176029icb.23.2011.08.24.21.05.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Aug 2011 21:05:03 -0700 (PDT) Date: Wed, 24 Aug 2011 21:05:03 -0700 (PDT) Message-ID: <87zkiyt9uc.wl%kuninori.morimoto.gx@renesas.com> To: Paul Mundt , Magnus , Guennadi Cc: Linux-SH , Kuninori Morimoto In-Reply-To: <8739gquogt.wl%kuninori.morimoto.gx@renesas.com> References: <8739gquogt.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 2/7] fbdev: sh_mipi_dsi: tidyup VMCTR2 parameter expression User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29q?= =?ISO-2022-JP-2?B?GyQoRCtXGyhC?=) APEL/10.8 Emacs/23.2 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 25 Aug 2011 04:05:06 +0000 (UTC) VMCTR2 parameter will be supported more in the future. 1 << xx style is easy to understand. Signed-off-by: Kuninori Morimoto --- drivers/video/sh_mipi_dsi.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/sh_mipi_dsi.c b/drivers/video/sh_mipi_dsi.c index 8f17efc..3b408b7 100644 --- a/drivers/video/sh_mipi_dsi.c +++ b/drivers/video/sh_mipi_dsi.c @@ -316,9 +316,9 @@ static int __init sh_mipi_setup(struct sh_mipi *mipi, * HSA period allowed, no commands in LP */ if (pdata->flags & SH_MIPI_DSI_HSABM) - vmctr2 |= 0x20; + vmctr2 |= 1 << 5; if (pdata->flags & SH_MIPI_DSI_HBPBM) - vmctr2 |= 0x10; + vmctr2 |= 1 << 4; iowrite32(vmctr2, mipi->linkbase + VMCTR2); /*