Skip to contentSkip to conversation

arm/omap: Replace board_ref_clock with enum values

PATCH New Vikram Narayanan 3 participants 3 messages Sep 26, 2012 – Oct 8, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/omap: Replace board_ref_clock with enum values

Use the enum for board_ref_clock from linux/wl12xx.h

Cc Tony Lindgren <[email protected]>
Cc linux-omap at vger.kernel.org

---
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(-)
arch/arm/mach-omap2/board-omap4panda.c +1 -2
index 70f6d1d..e188765 100644
@@ -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 = {
arch/arm/mach-omap2/board-zoom-peripherals.c +1 -2
index b797cb2..499dca7 100644
@@ -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[] = {
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/1 arm/omap: Replace board_ref_clock with enum values

Hi,

Quoted 5 lines · Vikram Narayanan

Use the enum for board_ref_clock from linux/wl12xx.h

Cc Tony Lindgren <[email protected]>
Cc linux-omap at vger.kernel.org
Quoted 7 lines

---
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(-)

Looks good.

--
Pankaj Jangra

maintainer
#2 lore raw

PATCH 1/1 arm/omap: Replace board_ref_clock with enum values

Quoted 11 lines · Pankaj Jangra

Hi,

Quoted 8 lines · Vikram Narayanan

Use the enum for board_ref_clock from linux/wl12xx.h

Cc Tony Lindgren <[email protected]>
Cc linux-omap at vger.kernel.org

---
I'm not subscribed to the list. So please keep me in Cc for the replies.

Quoted 8 lines
Quoted 4 lines
 arch/arm/mach-omap2/board-omap4panda.c       |    3 +--
 arch/arm/mach-omap2/board-zoom-peripherals.c |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

Looks good.

Thanks applying into omap fixes.

Tony