From patchwork Fri Oct 14 12:50:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sangwook X-Patchwork-Id: 4685 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4A3DC23DEE for ; Fri, 14 Oct 2011 12:53:11 +0000 (UTC) Received: from mail-gx0-f180.google.com (mail-gx0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1424CA187BE for ; Fri, 14 Oct 2011 12:53:10 +0000 (UTC) Received: by ggni2 with SMTP id i2so1554054ggn.11 for ; Fri, 14 Oct 2011 05:53:10 -0700 (PDT) Received: by 10.223.77.71 with SMTP id f7mr3959714fak.33.1318596790300; Fri, 14 Oct 2011 05:53:10 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.24.41 with SMTP id r9cs14340laf; Fri, 14 Oct 2011 05:53:10 -0700 (PDT) Received: by 10.213.4.198 with SMTP id 6mr220554ebs.88.1318596789820; Fri, 14 Oct 2011 05:53:09 -0700 (PDT) Received: from mail-dy0-f50.google.com (mail-dy0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id i8si2958583wed.77.2011.10.14.05.53.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Oct 2011 05:53:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of sangwook.lee@linaro.org) client-ip=209.85.220.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of sangwook.lee@linaro.org) smtp.mail=sangwook.lee@linaro.org Received: by dye2 with SMTP id 2so151500dye.37 for ; Fri, 14 Oct 2011 05:53:05 -0700 (PDT) Received: by 10.223.14.134 with SMTP id g6mr3929731faa.11.1318596773973; Fri, 14 Oct 2011 05:52:53 -0700 (PDT) Received: from localhost.localdomain (host109-149-104-5.range109-149.btcentralplus.com. [109.149.104.5]) by mx.google.com with ESMTPS id f10sm3562601fac.14.2011.10.14.05.52.51 (version=SSLv3 cipher=OTHER); Fri, 14 Oct 2011 05:52:52 -0700 (PDT) From: Sangwook Lee To: kvalo@qca.qualcomm.com Cc: linux-wireless@vger.kernel.org, patches@linaro.org, Sangwook Lee Subject: [PATCH 1/5] ath6kl: Add SDIO polling function definitions Date: Fri, 14 Oct 2011 13:50:42 +0100 Message-Id: <1318596646-19495-2-git-send-email-sangwook.lee@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1318596646-19495-1-git-send-email-sangwook.lee@linaro.org> References: <1318596646-19495-1-git-send-email-sangwook.lee@linaro.org> Add SDIO polling function definition into debug.h Signed-off-by: Sangwook Lee --- drivers/net/wireless/ath/ath6kl/debug.h | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/ath6kl/debug.h b/drivers/net/wireless/ath/ath6kl/debug.h index 9288a3c..bbe4a39 100644 --- a/drivers/net/wireless/ath/ath6kl/debug.h +++ b/drivers/net/wireless/ath/ath6kl/debug.h @@ -133,6 +133,31 @@ static inline int ath6kl_debug_init(struct ath6kl *ar) static inline void ath6kl_debug_cleanup(struct ath6kl *ar) { } +#endif + +#ifdef CONFIG_ATH6KL_SDIO_POLL +void ath6kl_wd_init(struct ath6kl *ar); + +void ath6kl_wd_cleanup(struct ath6kl *ar); + +static inline int ath6kl_wd_poll_is_ture(void) +{ + return true; +} + +#else +static inline void ath6kl_wd_init(struct ath6kl *ar) +{ +} + +static inline void ath6kl_wd_cleanup(struct ath6kl *ar) +{ +} + +static inline int ath6kl_wd_poll_is_ture(void) +{ + return false; +} #endif #endif