Search Linux Wireless

Re: [ath9k-devel] [PATCH v2 08/11] ath9k: remove (u16) casts from rtc register access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pavel Roskin írta:
> On Fri, 2009-01-09 at 13:24 +0100, Gabor Juhos wrote:
>> The RTC register offsets don't fit into 'u16' on the AR913x, so we have
>> to remove the existing casts.
>>
>> Signed-off-by: Gabor Juhos <juhosg@xxxxxxxxxxx>
>> Signed-off-by: Imre Kaloz <kaloz@xxxxxxxxxxx>
>> ---
>>  drivers/net/wireless/ath9k/hw.c |   14 +++++++-------
>>  1 files changed, 7 insertions(+), 7 deletions(-)
>>
>> diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c
>> index 088d968..742ecc1 100644
>> --- a/drivers/net/wireless/ath9k/hw.c
>> +++ b/drivers/net/wireless/ath9k/hw.c
>> @@ -1008,7 +1008,7 @@ static void ath9k_hw_init_pll(struct ath_hal *ah,
>>  				pll |= SM(0xb, AR_RTC_PLL_DIV);
>>  		}
>>  	}
>> -	REG_WRITE(ah, (u16) (AR_RTC_PLL_CONTROL), pll);
>> +	REG_WRITE(ah, (AR_RTC_PLL_CONTROL), pll);
> 
> Perhaps you could remove the parentheses as well?  It looks weird
> otherwise.
> 

Yes. I will do it.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux