From patchwork Wed Sep 26 16:42:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikram Narayanan X-Patchwork-Id: 1510171 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 141F6DF238 for ; Wed, 26 Sep 2012 16:44:18 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TGuh5-0007bY-I2; Wed, 26 Sep 2012 16:42:39 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TGuh0-0007aY-KY for linux-arm-kernel@lists.infradead.org; Wed, 26 Sep 2012 16:42:36 +0000 Received: by pbcxa7 with SMTP id xa7so943066pbc.36 for ; Wed, 26 Sep 2012 09:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=ifkvulMnUqZMEtXtlm4hU/jpFn4ItZWZmyiIvl7RCoI=; b=hdnAaVgv19bksud9HNflys7hUPyjA47Kl0cT8EpEdShohTa/pNDFeHNs6U9mn/6DA+ 3NoS+EtFlihATs48KNTsVSWi6pc+1bjqaBhfE7y+3/rQxMCctTVO2TDMyjiUr6ijabLY vAPo2zPbl8WJ83iszEFouJtNWbLkhM39HSus6Lbrt+xQQsyFtoFb8IpSmG+XJaLsxbqF BPGG7eC4ep1e+Ld87Vsc61kBpIN+ioldsVWLGFx7YlhlGn+jz4ZCM+75RFu+nu4KSpkq XkDsvLGXVmNve8m1+DTHReo060en3rqGSIxXAX3ywxJ05T9Z5TOwQ24LDgKmyA9jdyqU FgGQ== Received: by 10.68.235.38 with SMTP id uj6mr4298207pbc.3.1348677752423; Wed, 26 Sep 2012 09:42:32 -0700 (PDT) Received: from [115.241.126.224] ([115.241.126.224]) by mx.google.com with ESMTPS id py9sm2309469pbb.20.2012.09.26.09.42.26 (version=SSLv3 cipher=OTHER); Wed, 26 Sep 2012 09:42:31 -0700 (PDT) Message-ID: <5063306E.8080200@gmail.com> Date: Wed, 26 Sep 2012 22:12:22 +0530 From: Vikram Narayanan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm/omap: Replace board_ref_clock with enum values X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (vikram186[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (vikram186[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Tony Lindgren , linux-omap@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Use the enum for board_ref_clock from linux/wl12xx.h Signed-off-by: Vikram Narayanan Cc: Tony Lindgren Cc: linux-omap@vger.kernel.org Reviewed-by: Pankaj Jangra --- I'm not subscribed to the list. So please keep me in Cc for the replies. arch/arm/mach-omap2/board-omap4panda.c | 3 +-- arch/arm/mach-omap2/board-zoom-peripherals.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index 70f6d1d..e188765 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c @@ -248,8 +248,7 @@ static struct platform_device omap_vwlan_device = { }; static struct wl12xx_platform_data omap_panda_wlan_data __initdata = { - /* PANDA ref clock is 38.4 MHz */ - .board_ref_clock = 2, + .board_ref_clock = WL12XX_REFCLOCK_38, /* 38.4 MHz */ }; static struct twl6040_codec_data twl6040_codec = { diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c index b797cb2..499dca7 100644 --- a/arch/arm/mach-omap2/board-zoom-peripherals.c +++ b/arch/arm/mach-omap2/board-zoom-peripherals.c @@ -193,8 +193,7 @@ static struct platform_device omap_vwlan_device = { }; static struct wl12xx_platform_data omap_zoom_wlan_data __initdata = { - /* ZOOM ref clock is 26 MHz */ - .board_ref_clock = 1, + .board_ref_clock = WL12XX_REFCLOCK_26, /* 26 MHz */ }; static struct omap2_hsmmc_info mmc[] = {