]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Correct NVRAM stream endian notations
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 25 Feb 2009 14:25:30 +0000 (14:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 07:16:36 +0000 (23:16 -0800)
commitcd7a03e2c93b66070b1305a04854f0444a64ed68
tree3933849baa62bb04d65a974ee01e68546fbfd33d
parent958fe120d1194648a19816054c6be6247574670e
tg3: Correct NVRAM stream endian notations

Any software requesting NVRAM data as it exists on NVRAM is necessarily
requesting that the results be returned as a bytestream.  A bytestream
data read in from the device can also be thought to be in big endian
format.  Therefore, all the LE notations in the driver are mislabeled.
This patch converts all LE notations to BE notations, carefully
evaluating the surrounding code in the process.

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