From patchwork Sat May 8 16:22:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 97919 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 o48GN6qN010730 for ; Sat, 8 May 2010 16:23:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753787Ab0EHQXF (ORCPT ); Sat, 8 May 2010 12:23:05 -0400 Received: from mail-qy0-f183.google.com ([209.85.221.183]:51222 "EHLO mail-qy0-f183.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753702Ab0EHQXC (ORCPT ); Sat, 8 May 2010 12:23:02 -0400 Received: by qyk13 with SMTP id 13so3446177qyk.1 for ; Sat, 08 May 2010 09:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=++fY3/kUQzamdxYpdlAxMwfbHCyCYNIkUjNmgfxf0BE=; b=L+CVvxYBwPW0a3eA9kWkfKzeWwp/FfdwQgsLn7KXchhuVbtQHCS9eMPuQFKPezvWiY 2YJubjm2Kp9v7/IcZATbP7tORGoOwfaWOrjMQjNjh05EtwTdo7jMbhQdZyFqDcWS5R3C NUuflJ45vRtyHDmPFV+oWG/sAlm/IipBtlkrA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=Pf5Bwt/2XLe5qX3NPA/HWCl55/cy/mFJHJcv8rxqLyUB7ZDYwp85R4pUcQtNC8o6Nv Azk0a5Ka7aZN8apzEA1ZeD21SfzDM0Yj/H9uLc+PnHoMtm9oVg1zZJ83NWnoOAch83Ep Cyxur9FxynbqPSsWTA82r3ev5ZomFn2ZSPSVU= Received: by 10.224.53.164 with SMTP id m36mr1014821qag.206.1273335781658; Sat, 08 May 2010 09:23:01 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id f5sm2072822qcg.2.2010.05.08.09.22.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 May 2010 09:23:01 -0700 (PDT) Date: Sat, 8 May 2010 18:22:47 +0200 From: Dan Carpenter To: "Luis R. Rodriguez" Cc: Jouni Malinen , Sujith Manoharan , Vasanthakumar Thiagarajan , Senthil Balasubramanian , "John W. Linville" , Felix Fietkau , linux-wireless@vger.kernel.org, ath9k-devel@venema.h4ckr.net Subject: [patch 3/9] ath9k: cleanup: u32 => bool Message-ID: <20100508162247.GO27064@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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]); Sat, 08 May 2010 16:23:07 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath9k/ar5008_phy.c b/drivers/net/wireless/ath/ath9k/ar5008_phy.c index b2c17c9..f685b8b 100644 --- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c @@ -1082,7 +1082,7 @@ static bool ar5008_hw_ani_control(struct ath_hw *ah, const int m2Thresh[] = { 127, 0x40 }; const int m2CountThr[] = { 31, 16 }; const int m2CountThrLow[] = { 63, 48 }; - u32 on = param ? 1 : 0; + bool on = param ? 1 : 0; REG_RMW_FIELD(ah, AR_PHY_SFCORR_LOW, AR_PHY_SFCORR_LOW_M1_THRESH_LOW, diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c index 80431a2..0c34154 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c @@ -771,7 +771,7 @@ static bool ar9003_hw_ani_control(struct ath_hw *ah, const int m2Thresh[] = { 127, 0x40 }; const int m2CountThr[] = { 31, 16 }; const int m2CountThrLow[] = { 63, 48 }; - u32 on = param ? 1 : 0; + bool on = param ? 1 : 0; REG_RMW_FIELD(ah, AR_PHY_SFCORR_LOW, AR_PHY_SFCORR_LOW_M1_THRESH_LOW,