diff options
author | Joe Perches <joe@perches.com> | 2010-12-21 05:16:08 -0500 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2010-12-21 05:16:08 -0500 |
commit | b6bc765067ece933cc3dc7f5e95665a89100b1d5 (patch) | |
tree | bbf55c2d80e839eb4c0ab23bcbdd656d14b3f5fe /drivers/net/at1700.c | |
parent | 895950c2a6565d9eefda4a38b00fa28537e39fcb (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/at1700.c')
-rw-r--r-- | drivers/net/at1700.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/at1700.c b/drivers/net/at1700.c index 871b1633f543..f4744fc89768 100644 --- a/drivers/net/at1700.c +++ b/drivers/net/at1700.c | |||
@@ -270,9 +270,9 @@ static const struct net_device_ops at1700_netdev_ops = { | |||
270 | 270 | ||
271 | static int __init at1700_probe1(struct net_device *dev, int ioaddr) | 271 | static int __init at1700_probe1(struct net_device *dev, int ioaddr) |
272 | { | 272 | { |
273 | char fmv_irqmap[4] = {3, 7, 10, 15}; | 273 | static const char fmv_irqmap[4] = {3, 7, 10, 15}; |
274 | char fmv_irqmap_pnp[8] = {3, 4, 5, 7, 9, 10, 11, 15}; | 274 | static const char fmv_irqmap_pnp[8] = {3, 4, 5, 7, 9, 10, 11, 15}; |
275 | char at1700_irqmap[8] = {3, 4, 5, 9, 10, 11, 14, 15}; | 275 | static const char at1700_irqmap[8] = {3, 4, 5, 9, 10, 11, 14, 15}; |
276 | unsigned int i, irq, is_fmv18x = 0, is_at1700 = 0; | 276 | unsigned int i, irq, is_fmv18x = 0, is_at1700 = 0; |
277 | int slot, ret = -ENODEV; | 277 | int slot, ret = -ENODEV; |
278 | struct net_local *lp = netdev_priv(dev); | 278 | struct net_local *lp = netdev_priv(dev); |