1 From bd1e58fffa3e7be41926eac0377d3e726cd6048d Mon Sep 17 00:00:00 2001
2 From: Grazvydas Ignotas <notasas@gmail.com>
3 Date: Sat, 6 Mar 2010 22:22:32 +0200
4 Subject: [PATCH 1/5] wl1251: make local symbols static
6 Make local functions and data static, also constify
7 some structures. While at it, clean up unneeded includes.
9 Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
10 Cc: Bob Copeland <me@bobcopeland.com>
12 drivers/net/wireless/wl12xx/wl1251_sdio.c | 25 +++++++++----------------
13 1 files changed, 9 insertions(+), 16 deletions(-)
15 diff --git a/drivers/net/wireless/wl12xx/wl1251_sdio.c b/drivers/net/wireless/wl12xx/wl1251_sdio.c
16 index 9423f22..0aceb91 100644
17 --- a/drivers/net/wireless/wl12xx/wl1251_sdio.c
18 +++ b/drivers/net/wireless/wl12xx/wl1251_sdio.c
20 * Copyright (C) 2009 Bob Copeland (me@bobcopeland.com)
22 #include <linux/module.h>
23 -#include <linux/crc7.h>
24 -#include <linux/mod_devicetable.h>
25 -#include <linux/irq.h>
26 #include <linux/mmc/sdio_func.h>
27 #include <linux/mmc/sdio_ids.h>
28 -#include <linux/platform_device.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"
38 #ifndef SDIO_VENDOR_ID_TI
39 #define SDIO_VENDOR_ID_TI 0x104c
40 @@ -65,7 +55,8 @@ static const struct sdio_device_id wl1251_devices[] = {
41 MODULE_DEVICE_TABLE(sdio, wl1251_devices);
44 -void wl1251_sdio_read(struct wl1251 *wl, int addr, void *buf, size_t len)
45 +static void wl1251_sdio_read(struct wl1251 *wl, int addr,
46 + void *buf, size_t len)
49 struct sdio_func *func = wl_to_func(wl);
50 @@ -77,7 +68,8 @@ void wl1251_sdio_read(struct wl1251 *wl, int addr, void *buf, size_t len)
51 sdio_release_host(func);
54 -void wl1251_sdio_write(struct wl1251 *wl, int addr, void *buf, size_t len)
55 +static void wl1251_sdio_write(struct wl1251 *wl, int addr,
56 + void *buf, size_t len)
59 struct sdio_func *func = wl_to_func(wl);
60 @@ -89,7 +81,7 @@ void wl1251_sdio_write(struct wl1251 *wl, int addr, void *buf, size_t len)
61 sdio_release_host(func);
64 -void wl1251_sdio_reset(struct wl1251 *wl)
65 +static void wl1251_sdio_reset(struct wl1251 *wl)
69 @@ -111,11 +103,11 @@ static void wl1251_sdio_disable_irq(struct wl1251 *wl)
70 sdio_release_host(func);
73 -void wl1251_sdio_set_power(bool enable)
74 +static void wl1251_sdio_set_power(bool enable)
78 -struct wl1251_if_operations wl1251_sdio_ops = {
79 +static const struct wl1251_if_operations wl1251_sdio_ops = {
80 .read = wl1251_sdio_read,
81 .write = wl1251_sdio_write,
82 .reset = wl1251_sdio_reset,
83 @@ -123,7 +115,8 @@ struct wl1251_if_operations wl1251_sdio_ops = {
84 .disable_irq = wl1251_sdio_disable_irq,
87 -int wl1251_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id)
88 +static int wl1251_sdio_probe(struct sdio_func *func,
89 + const struct sdio_device_id *id)