Subject: [PATCH 04/26] rt2x00: EEPROM 93Cx6

From: Ivo van Doorn <[email-masked]>
Date: Sun, 3 Dec 2006 19:19:05 +0100

rt2400pci, rt2500pci and rt61pci share exactly the
same code for the eeprom reading. The only difference
is that rt61pci has a slightly different register reading
approach. In any case we have a lot of duplicate code.
Create a new module eeprom_93cx6 inside the rt2x00 folder
and make rt2x00 use that.
As a bonus the entire eeprom is read into an array
to optimize eeprom usage. This also enables dummy eeprom
writing where the temporary buffer can be manipulated by
the user without permanently harming the eeprom.
This feature should have been enabled through ethtool,
but 3 days after this patch ethtool was removed from
d80211. This feature will be used when debugfs has been
implemented.

Signed-off-by Ivo van Doorn <[email-masked]>

---

http://www.mendiosus.nl/rt2x00/04_eeprom.diff