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: 1510151 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 72E52DF238 for ; Wed, 26 Sep 2012 16:42:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757011Ab2IZQmd (ORCPT ); Wed, 26 Sep 2012 12:42:33 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:59277 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752173Ab2IZQmc (ORCPT ); Wed, 26 Sep 2012 12:42:32 -0400 Received: by padhz1 with SMTP id hz1so591873pad.19 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 CC: linux-omap@vger.kernel.org, Tony Lindgren Subject: [PATCH] arm/omap: Replace board_ref_clock with enum values Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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[] = {