diff options
author | Nishanth Menon <nm@ti.com> | 2011-01-06 22:49:29 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-01-06 22:58:28 -0500 |
commit | 0ce3bb7208b5bf7de2d869a881372b60cc37362c (patch) | |
tree | 011c8d2c6b85016ab0486f5fe3b8cbc38d003c25 | |
parent | bcb52693a49994f435fad5f8d4277fbb125f3452 (diff) |
omap3: zoom: use static for pointer passing
omap_zoom_wlan_data and zoom2_set_hs_extmute are not used beyond
the scope of zoom-peripherals directly, instead pointers are used.
make them static instead.
Fixes sparse warnings:
arch/arm/mach-omap2/board-zoom-peripherals.c:193:29: warning: symbol 'omap_zoom_wlan_data' was not declared. Should it be static?
arch/arm/mach-omap2/board-zoom-peripherals.c:245:6: warning: symbol 'zoom2_set_hs_extmute' was not declared. Should it be static?
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/board-zoom-peripherals.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c index 3fbd0edd712e..3d1f9abd5663 100644 --- a/arch/arm/mach-omap2/board-zoom-peripherals.c +++ b/arch/arm/mach-omap2/board-zoom-peripherals.c | |||
@@ -190,7 +190,7 @@ static struct platform_device omap_vwlan_device = { | |||
190 | }, | 190 | }, |
191 | }; | 191 | }; |
192 | 192 | ||
193 | struct wl12xx_platform_data omap_zoom_wlan_data __initdata = { | 193 | static struct wl12xx_platform_data omap_zoom_wlan_data __initdata = { |
194 | .irq = OMAP_GPIO_IRQ(OMAP_ZOOM_WLAN_IRQ_GPIO), | 194 | .irq = OMAP_GPIO_IRQ(OMAP_ZOOM_WLAN_IRQ_GPIO), |
195 | /* ZOOM ref clock is 26 MHz */ | 195 | /* ZOOM ref clock is 26 MHz */ |
196 | .board_ref_clock = 1, | 196 | .board_ref_clock = 1, |
@@ -242,7 +242,7 @@ static int zoom_twl_gpio_setup(struct device *dev, | |||
242 | } | 242 | } |
243 | 243 | ||
244 | /* EXTMUTE callback function */ | 244 | /* EXTMUTE callback function */ |
245 | void zoom2_set_hs_extmute(int mute) | 245 | static void zoom2_set_hs_extmute(int mute) |
246 | { | 246 | { |
247 | gpio_set_value(ZOOM2_HEADSET_EXTMUTE_GPIO, mute); | 247 | gpio_set_value(ZOOM2_HEADSET_EXTMUTE_GPIO, mute); |
248 | } | 248 | } |