tg3: Invert nvram_read() and nvram_read_swab()
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 25 Feb 2009 14:25:00 +0000 (14:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 07:16:36 +0000 (23:16 -0800)
commite4f341103e4a2b35f56a0f89802f1b1448e8d04b
tree8c5c2789c3ba29ecb62587e2a8016b02dedfe714
parentffbcfed441b9ba74ce77f215eed6925f6a0b82a3
tg3: Invert nvram_read() and nvram_read_swab()

This patch removes the blind byteswap of NVRAM data as it is read in.
To preserve the logic at the call sites, this patch also inverts every
call to tg3_nvram_read() and tg3_nvram_read_swab().  The call swap gets
confusing within tg3_nvram_read_le() (LE is a misnomer), but the reader
should be able to convince himself / herself that the resulting behavior
is still unchanged.

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