aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-12-21 05:16:08 -0500
committerJoe Perches <joe@perches.com>2010-12-21 05:16:08 -0500
commitb6bc765067ece933cc3dc7f5e95665a89100b1d5 (patch)
treebbf55c2d80e839eb4c0ab23bcbdd656d14b3f5fe /drivers/net/bnx2.c
parent895950c2a6565d9eefda4a38b00fa28537e39fcb (diff)
drivers/net/*.c: Use static const
Using static const generally increases object text and decreases data size. It also generally decreases overall object size. Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r--drivers/net/bnx2.c46
1 files changed, 24 insertions, 22 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 5c811f3fa11..819b55cbd49 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -6811,28 +6811,30 @@ bnx2_get_regs(struct net_device *dev, struct ethtool_regs *regs, void *_p)
6811 u32 *p = _p, i, offset; 6811 u32 *p = _p, i, offset;
6812 u8 *orig_p = _p; 6812 u8 *orig_p = _p;
6813 struct bnx2 *bp = netdev_priv(dev); 6813 struct bnx2 *bp = netdev_priv(dev);
6814 u32 reg_boundaries[] = { 0x0000, 0x0098, 0x0400, 0x045c, 6814 static const u32 reg_boundaries[] = {
6815 0x0800, 0x0880, 0x0c00, 0x0c10, 6815 0x0000, 0x0098, 0x0400, 0x045c,
6816 0x0c30, 0x0d08, 0x1000, 0x101c, 6816 0x0800, 0x0880, 0x0c00, 0x0c10,
6817 0x1040, 0x1048, 0x1080, 0x10a4, 6817 0x0c30, 0x0d08, 0x1000, 0x101c,
6818 0x1400, 0x1490, 0x1498, 0x14f0, 6818 0x1040, 0x1048, 0x1080, 0x10a4,
6819 0x1500, 0x155c, 0x1580, 0x15dc, 6819 0x1400, 0x1490, 0x1498, 0x14f0,
6820 0x1600, 0x1658, 0x1680, 0x16d8, 6820 0x1500, 0x155c, 0x1580, 0x15dc,
6821 0x1800, 0x1820, 0x1840, 0x1854, 6821 0x1600, 0x1658, 0x1680, 0x16d8,
6822 0x1880, 0x1894, 0x1900, 0x1984, 6822 0x1800, 0x1820, 0x1840, 0x1854,
6823 0x1c00, 0x1c0c, 0x1c40, 0x1c54, 6823 0x1880, 0x1894, 0x1900, 0x1984,
6824 0x1c80, 0x1c94, 0x1d00, 0x1d84, 6824 0x1c00, 0x1c0c, 0x1c40, 0x1c54,
6825 0x2000, 0x2030, 0x23c0, 0x2400, 6825 0x1c80, 0x1c94, 0x1d00, 0x1d84,
6826 0x2800, 0x2820, 0x2830, 0x2850, 6826 0x2000, 0x2030, 0x23c0, 0x2400,
6827 0x2b40, 0x2c10, 0x2fc0, 0x3058, 6827 0x2800, 0x2820, 0x2830, 0x2850,
6828 0x3c00, 0x3c94, 0x4000, 0x4010, 6828 0x2b40, 0x2c10, 0x2fc0, 0x3058,
6829 0x4080, 0x4090, 0x43c0, 0x4458, 6829 0x3c00, 0x3c94, 0x4000, 0x4010,
6830 0x4c00, 0x4c18, 0x4c40, 0x4c54, 6830 0x4080, 0x4090, 0x43c0, 0x4458,
6831 0x4fc0, 0x5010, 0x53c0, 0x5444, 6831 0x4c00, 0x4c18, 0x4c40, 0x4c54,
6832 0x5c00, 0x5c18, 0x5c80, 0x5c90, 6832 0x4fc0, 0x5010, 0x53c0, 0x5444,
6833 0x5fc0, 0x6000, 0x6400, 0x6428, 6833 0x5c00, 0x5c18, 0x5c80, 0x5c90,
6834 0x6800, 0x6848, 0x684c, 0x6860, 6834 0x5fc0, 0x6000, 0x6400, 0x6428,
6835 0x6888, 0x6910, 0x8000 }; 6835 0x6800, 0x6848, 0x684c, 0x6860,
6836 0x6888, 0x6910, 0x8000
6837 };
6836 6838
6837 regs->version = 0; 6839 regs->version = 0;
6838 6840