diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2010-03-12 05:28:41 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-15 15:32:02 -0400 |
commit | 3c9cb9c38a1368b1e3f187f23c1a56883ec656c2 (patch) | |
tree | e66790cddea43c77e896ab4a323c651d4d25223d /drivers/net/wireless/wl12xx/wl1251_sdio.c | |
parent | eaf55530c94cb7adcd320c28ed6c7d463c9a3727 (diff) |
wl1251: make local symbols static
Make local functions and data static, also constify
some structures. While at it, clean up unneeded includes.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Cc: Bob Copeland <me@bobcopeland.com>
Acked-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251_sdio.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_sdio.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_sdio.c b/drivers/net/wireless/wl12xx/wl1251_sdio.c index 9423f22bdced..cfca232dc8cb 100644 --- a/drivers/net/wireless/wl12xx/wl1251_sdio.c +++ b/drivers/net/wireless/wl12xx/wl1251_sdio.c | |||
@@ -20,20 +20,11 @@ | |||
20 | * Copyright (C) 2009 Bob Copeland (me@bobcopeland.com) | 20 | * Copyright (C) 2009 Bob Copeland (me@bobcopeland.com) |
21 | */ | 21 | */ |
22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
23 | #include <linux/crc7.h> | ||
24 | #include <linux/mod_devicetable.h> | 23 | #include <linux/mod_devicetable.h> |
25 | #include <linux/irq.h> | ||
26 | #include <linux/mmc/sdio_func.h> | 24 | #include <linux/mmc/sdio_func.h> |
27 | #include <linux/mmc/sdio_ids.h> | 25 | #include <linux/mmc/sdio_ids.h> |
28 | #include <linux/platform_device.h> | ||
29 | 26 | ||
30 | #include "wl1251.h" | 27 | #include "wl1251.h" |
31 | #include "wl12xx_80211.h" | ||
32 | #include "wl1251_reg.h" | ||
33 | #include "wl1251_ps.h" | ||
34 | #include "wl1251_io.h" | ||
35 | #include "wl1251_tx.h" | ||
36 | #include "wl1251_debugfs.h" | ||
37 | 28 | ||
38 | #ifndef SDIO_VENDOR_ID_TI | 29 | #ifndef SDIO_VENDOR_ID_TI |
39 | #define SDIO_VENDOR_ID_TI 0x104c | 30 | #define SDIO_VENDOR_ID_TI 0x104c |
@@ -65,7 +56,8 @@ static const struct sdio_device_id wl1251_devices[] = { | |||
65 | MODULE_DEVICE_TABLE(sdio, wl1251_devices); | 56 | MODULE_DEVICE_TABLE(sdio, wl1251_devices); |
66 | 57 | ||
67 | 58 | ||
68 | void wl1251_sdio_read(struct wl1251 *wl, int addr, void *buf, size_t len) | 59 | static void wl1251_sdio_read(struct wl1251 *wl, int addr, |
60 | void *buf, size_t len) | ||
69 | { | 61 | { |
70 | int ret; | 62 | int ret; |
71 | struct sdio_func *func = wl_to_func(wl); | 63 | struct sdio_func *func = wl_to_func(wl); |
@@ -77,7 +69,8 @@ void wl1251_sdio_read(struct wl1251 *wl, int addr, void *buf, size_t len) | |||
77 | sdio_release_host(func); | 69 | sdio_release_host(func); |
78 | } | 70 | } |
79 | 71 | ||
80 | void wl1251_sdio_write(struct wl1251 *wl, int addr, void *buf, size_t len) | 72 | static void wl1251_sdio_write(struct wl1251 *wl, int addr, |
73 | void *buf, size_t len) | ||
81 | { | 74 | { |
82 | int ret; | 75 | int ret; |
83 | struct sdio_func *func = wl_to_func(wl); | 76 | struct sdio_func *func = wl_to_func(wl); |
@@ -89,7 +82,7 @@ void wl1251_sdio_write(struct wl1251 *wl, int addr, void *buf, size_t len) | |||
89 | sdio_release_host(func); | 82 | sdio_release_host(func); |
90 | } | 83 | } |
91 | 84 | ||
92 | void wl1251_sdio_reset(struct wl1251 *wl) | 85 | static void wl1251_sdio_reset(struct wl1251 *wl) |
93 | { | 86 | { |
94 | } | 87 | } |
95 | 88 | ||
@@ -111,11 +104,11 @@ static void wl1251_sdio_disable_irq(struct wl1251 *wl) | |||
111 | sdio_release_host(func); | 104 | sdio_release_host(func); |
112 | } | 105 | } |
113 | 106 | ||
114 | void wl1251_sdio_set_power(bool enable) | 107 | static void wl1251_sdio_set_power(bool enable) |
115 | { | 108 | { |
116 | } | 109 | } |
117 | 110 | ||
118 | struct wl1251_if_operations wl1251_sdio_ops = { | 111 | static const struct wl1251_if_operations wl1251_sdio_ops = { |
119 | .read = wl1251_sdio_read, | 112 | .read = wl1251_sdio_read, |
120 | .write = wl1251_sdio_write, | 113 | .write = wl1251_sdio_write, |
121 | .reset = wl1251_sdio_reset, | 114 | .reset = wl1251_sdio_reset, |
@@ -123,7 +116,8 @@ struct wl1251_if_operations wl1251_sdio_ops = { | |||
123 | .disable_irq = wl1251_sdio_disable_irq, | 116 | .disable_irq = wl1251_sdio_disable_irq, |
124 | }; | 117 | }; |
125 | 118 | ||
126 | int wl1251_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id) | 119 | static int wl1251_sdio_probe(struct sdio_func *func, |
120 | const struct sdio_device_id *id) | ||
127 | { | 121 | { |
128 | int ret; | 122 | int ret; |
129 | struct wl1251 *wl; | 123 | struct wl1251 *wl; |