diff options
author | Joe Perches <joe@perches.com> | 2011-07-29 12:38:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-01 03:12:01 -0400 |
commit | fc502ba0086f142639208f879e577e1b5a4eeb8e (patch) | |
tree | 07b22e697ce46b8013b354ef1118fe98267c3a77 /drivers/net/ipg.c | |
parent | c9ea53d0e720ce4af774d7e5046819761eb54e0a (diff) |
ipg: Use const
Make a couple of declarations const to save some data space.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipg.c')
-rw-r--r-- | drivers/net/ipg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c index 3aefaadd1513..b470281158e9 100644 --- a/drivers/net/ipg.c +++ b/drivers/net/ipg.c | |||
@@ -70,7 +70,7 @@ MODULE_LICENSE("GPL"); | |||
70 | * Variable record -- index by leading revision/length | 70 | * Variable record -- index by leading revision/length |
71 | * Revision/Length(=N*4), Address1, Data1, Address2, Data2,...,AddressN,DataN | 71 | * Revision/Length(=N*4), Address1, Data1, Address2, Data2,...,AddressN,DataN |
72 | */ | 72 | */ |
73 | static unsigned short DefaultPhyParam[] = { | 73 | static const unsigned short DefaultPhyParam[] = { |
74 | /* 11/12/03 IP1000A v1-3 rev=0x40 */ | 74 | /* 11/12/03 IP1000A v1-3 rev=0x40 */ |
75 | /*-------------------------------------------------------------------------- | 75 | /*-------------------------------------------------------------------------- |
76 | (0x4000|(15*4)), 31, 0x0001, 27, 0x01e0, 31, 0x0002, 22, 0x85bd, 24, 0xfff2, | 76 | (0x4000|(15*4)), 31, 0x0001, 27, 0x01e0, 31, 0x0002, 22, 0x85bd, 24, 0xfff2, |
@@ -88,7 +88,7 @@ static unsigned short DefaultPhyParam[] = { | |||
88 | 0x0000 | 88 | 0x0000 |
89 | }; | 89 | }; |
90 | 90 | ||
91 | static const char *ipg_brand_name[] = { | 91 | static const char * const ipg_brand_name[] = { |
92 | "IC PLUS IP1000 1000/100/10 based NIC", | 92 | "IC PLUS IP1000 1000/100/10 based NIC", |
93 | "Sundance Technology ST2021 based NIC", | 93 | "Sundance Technology ST2021 based NIC", |
94 | "Tamarack Microelectronics TC9020/9021 based NIC", | 94 | "Tamarack Microelectronics TC9020/9021 based NIC", |
@@ -1961,7 +1961,7 @@ static void ipg_set_phy_default_param(unsigned char rev, | |||
1961 | { | 1961 | { |
1962 | unsigned short length; | 1962 | unsigned short length; |
1963 | unsigned char revision; | 1963 | unsigned char revision; |
1964 | unsigned short *phy_param; | 1964 | const unsigned short *phy_param; |
1965 | unsigned short address, value; | 1965 | unsigned short address, value; |
1966 | 1966 | ||
1967 | phy_param = &DefaultPhyParam[0]; | 1967 | phy_param = &DefaultPhyParam[0]; |