From patchwork Fri Mar 12 10:28:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 85239 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2CASpd3013937 for ; Fri, 12 Mar 2010 10:28:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932567Ab0CLK2u (ORCPT ); Fri, 12 Mar 2010 05:28:50 -0500 Received: from fg-out-1718.google.com ([72.14.220.153]:53403 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932482Ab0CLK2t (ORCPT ); Fri, 12 Mar 2010 05:28:49 -0500 Received: by fg-out-1718.google.com with SMTP id 16so470437fgg.1 for ; Fri, 12 Mar 2010 02:28:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=JVqhX13d0odAP0w6b2Ibp92pvoSUW2/jqNe9qA5hLlw=; b=dKWwhQ9NZfx1uRD3LUtM6bZAmEiB1xKAKoR8q6WL9A5G03YG0v7Y2cJ9S/QbtzcaPa yNQHtvOZSkXZ19bv6w4dXjJSl1RCwWXdrpVztHMjub1nDPoFV29Sq92ULByzvFNAFLWR Xi+AgdQ0JJgdzD2VuJajcjDxKTLBU2Pz1OAvI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=oUEYlN43Hn0d7gCEFtLOasHoW4+SD55OawpnDiu0UJIDs4EAJXUAEFyWBhu4rFXcZ6 g/Z0FpklPPiPgAFwQ7M7XMdPjCheej4bXvnfvN96QA3loMsEFMOuK/Dq4zQFxlU72Vvg TQ79synVrMoSICcmcdB+Y+VuqU/gPHrfGp1DA= Received: by 10.87.50.22 with SMTP id c22mr1088781fgk.7.1268389727718; Fri, 12 Mar 2010 02:28:47 -0800 (PST) Received: from localhost.localdomain (ip-88-119-226-136.static.b4net.lt [88.119.226.136]) by mx.google.com with ESMTPS id d8sm1321437fga.19.2010.03.12.02.28.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Mar 2010 02:28:46 -0800 (PST) From: Grazvydas Ignotas To: "John W. Linville" Cc: linux-wireless@vger.kernel.org, Kalle Valo , Grazvydas Ignotas , Bob Copeland Subject: [PATCH 1/4 v2] wl1251: make local symbols static Date: Fri, 12 Mar 2010 12:28:41 +0200 Message-Id: <1268389721-3375-1-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 1.6.3.3 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 12 Mar 2010 10:28:51 +0000 (UTC) diff --git a/drivers/net/wireless/wl12xx/wl1251_sdio.c b/drivers/net/wireless/wl12xx/wl1251_sdio.c index 9423f22..cfca232 100644 --- a/drivers/net/wireless/wl12xx/wl1251_sdio.c +++ b/drivers/net/wireless/wl12xx/wl1251_sdio.c @@ -20,20 +20,11 @@ * Copyright (C) 2009 Bob Copeland (me@bobcopeland.com) */ #include -#include #include -#include #include #include -#include #include "wl1251.h" -#include "wl12xx_80211.h" -#include "wl1251_reg.h" -#include "wl1251_ps.h" -#include "wl1251_io.h" -#include "wl1251_tx.h" -#include "wl1251_debugfs.h" #ifndef SDIO_VENDOR_ID_TI #define SDIO_VENDOR_ID_TI 0x104c @@ -65,7 +56,8 @@ static const struct sdio_device_id wl1251_devices[] = { MODULE_DEVICE_TABLE(sdio, wl1251_devices); -void wl1251_sdio_read(struct wl1251 *wl, int addr, void *buf, size_t len) +static void wl1251_sdio_read(struct wl1251 *wl, int addr, + void *buf, size_t len) { int ret; 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) sdio_release_host(func); } -void wl1251_sdio_write(struct wl1251 *wl, int addr, void *buf, size_t len) +static void wl1251_sdio_write(struct wl1251 *wl, int addr, + void *buf, size_t len) { int ret; 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) sdio_release_host(func); } -void wl1251_sdio_reset(struct wl1251 *wl) +static void wl1251_sdio_reset(struct wl1251 *wl) { } @@ -111,11 +104,11 @@ static void wl1251_sdio_disable_irq(struct wl1251 *wl) sdio_release_host(func); } -void wl1251_sdio_set_power(bool enable) +static void wl1251_sdio_set_power(bool enable) { } -struct wl1251_if_operations wl1251_sdio_ops = { +static const struct wl1251_if_operations wl1251_sdio_ops = { .read = wl1251_sdio_read, .write = wl1251_sdio_write, .reset = wl1251_sdio_reset, @@ -123,7 +116,8 @@ struct wl1251_if_operations wl1251_sdio_ops = { .disable_irq = wl1251_sdio_disable_irq, }; -int wl1251_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id) +static int wl1251_sdio_probe(struct sdio_func *func, + const struct sdio_device_id *id) { int ret; struct wl1251 *wl;