summaryrefslogtreecommitdiffstats
path: root/drivers/net/ipg.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-07-29 16:38:15 +0000
committerDavid S. Miller <davem@davemloft.net>2011-08-01 00:12:01 -0700
commitfc502ba0086f142639208f879e577e1b5a4eeb8e (patch)
tree07b22e697ce46b8013b354ef1118fe98267c3a77 /drivers/net/ipg.c
parentc9ea53d0e720ce4af774d7e5046819761eb54e0a (diff)
downloadblackbird-op-linux-fc502ba0086f142639208f879e577e1b5a4eeb8e.tar.gz
blackbird-op-linux-fc502ba0086f142639208f879e577e1b5a4eeb8e.zip
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.c6
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");
* Variable record -- index by leading revision/length
* Revision/Length(=N*4), Address1, Data1, Address2, Data2,...,AddressN,DataN
*/
-static unsigned short DefaultPhyParam[] = {
+static const unsigned short DefaultPhyParam[] = {
/* 11/12/03 IP1000A v1-3 rev=0x40 */
/*--------------------------------------------------------------------------
(0x4000|(15*4)), 31, 0x0001, 27, 0x01e0, 31, 0x0002, 22, 0x85bd, 24, 0xfff2,
@@ -88,7 +88,7 @@ static unsigned short DefaultPhyParam[] = {
0x0000
};
-static const char *ipg_brand_name[] = {
+static const char * const ipg_brand_name[] = {
"IC PLUS IP1000 1000/100/10 based NIC",
"Sundance Technology ST2021 based NIC",
"Tamarack Microelectronics TC9020/9021 based NIC",
@@ -1961,7 +1961,7 @@ static void ipg_set_phy_default_param(unsigned char rev,
{
unsigned short length;
unsigned char revision;
- unsigned short *phy_param;
+ const unsigned short *phy_param;
unsigned short address, value;
phy_param = &DefaultPhyParam[0];
OpenPOWER on IntegriCloud