From patchwork Thu Mar 11 15:44:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 84934 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 o2BFiv52006727 for ; Thu, 11 Mar 2010 15:44:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933089Ab0CKPo4 (ORCPT ); Thu, 11 Mar 2010 10:44:56 -0500 Received: from mail-bw0-f209.google.com ([209.85.218.209]:45081 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933079Ab0CKPoz (ORCPT ); Thu, 11 Mar 2010 10:44:55 -0500 Received: by bwz1 with SMTP id 1so156999bwz.21 for ; Thu, 11 Mar 2010 07:44:54 -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=qrGWhkozNly741k3F0MHSMYyMoDtIJAg9g0bP6m7VOQ=; b=WhBg5twlUHIGSZtf63ycj0Aew0quEN1X/QSL7vGEJBtHtzSVg6E4+ODiukDynC8kzn MOPozSNI4ZZimlb+BkG+hJSHdqKN6iDlohZLS2WLj/rqG16pV8jeZ4ekVqXD5NNc3qfK h7e/lgKOAK0qh+1VJ/AiQANp285I72xUeFBMw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=D2SN9Dzft/FJSz9+8y8/j+J2S2/Owa2EYaEVZt/kUd7LoKP/eDdpmz0Rc9pRj/Ltbr ZARiZ41A1ukHOeaRQuPjbtdryC7Z6nFfQkK+9iDjG5JL/aeXX8fJuwzCX301v1m4QNdY XEei7mLPZRGjKo10rek6NAfKmakzDDMbCu4LE= Received: by 10.204.4.139 with SMTP id 11mr1299835bkr.27.1268322290712; Thu, 11 Mar 2010 07:44:50 -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 15sm66631bwz.4.2010.03.11.07.44.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Mar 2010 07:44:50 -0800 (PST) From: Grazvydas Ignotas To: linux-wireless@vger.kernel.org Cc: Kalle Valo , Grazvydas Ignotas , Bob Copeland Subject: [PATCH 1/4] wl1251: make local symbols static Date: Thu, 11 Mar 2010 17:44:36 +0200 Message-Id: <1268322276-16640-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]); Thu, 11 Mar 2010 15:44:57 +0000 (UTC) diff --git a/drivers/net/wireless/wl12xx/wl1251_sdio.c b/drivers/net/wireless/wl12xx/wl1251_sdio.c index 9423f22..0aceb91 100644 --- a/drivers/net/wireless/wl12xx/wl1251_sdio.c +++ b/drivers/net/wireless/wl12xx/wl1251_sdio.c @@ -20,20 +20,10 @@ * 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 +55,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 +68,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 +81,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 +103,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 +115,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;