Search Linux Wireless

Re: Please pull 'upstream-rtl8187' branch of wireless-2.6

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

 



From: Michael Buesch <mb@xxxxxxxxx>
Date: Thu, 10 May 2007 13:23:40 +0200

> Nah, Jeff. Please don't go this path.
> If we have to remove all magic numbers from drivers, we'd have to either
> *) Drop reverse engineered drivers like bcm43xx completely.
> *) Clutter them with completely useless defines such as
>    #define RADIO_UNKNOWN97A_REG	0x97A
> 
> Better leave such magic registers/values in the code as-is
> and probably convert them to good defines later, if reverse engineering
> found out the meaning. That's what I'm doing for bcm43xx and it makes
> a _whole_ lot more sense.

One good point I'd like to bring up is that someone reading this code
might not know any of this.

If you use a macro name that says it's a register you don't know the
meaning of, that's information and useful information at that.

This isn't for you, it's for other people reading the driver.

If you are suddenly unable to do any work on the driver at all, the
more information you leave around the better even if it seems trite
and useless to you.
-
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