tg3: Eliminate tg3_nvram_read_swab()
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 25 Feb 2009 14:25:52 +0000 (14:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 07:16:37 +0000 (23:16 -0800)
commit6d348f2c1e0bb1cf7a494b51fc921095ead3f6ae
tree50cdec651df320aa42d1f2b896cc6aa50296e21f
parenta9dc529dcd5c541c51cb2ba09bff99580361c576
tg3: Eliminate tg3_nvram_read_swab()

The remaining uses of tg3_nvram_read_swab() either intended to read the
data from NVRAM exactly as tg3_nvram_read_be32() did or hide deeper
interpretations of the data.  For the former case, a direct replacement
of tg3_nvram_read_swab() with tg3_nvram_read_be32() is in order.  For
the latter case, we remove tg3_nvram_read_swab() and document what the
code is really doing.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c