Commit 33c81821 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

net: phy: bcm7xxx: make array bcm7xxx_suspend_cfg static, reduces object code size

Don't populate the array bcm7xxx_suspend_cfg A on the stack, instead
make it static.  Makes the object code smaller by over 300 bytes:

Before:
   text	   data	    bss	    dec	    hex	filename
   6351	   8146	      0	  14497	   38a1	drivers/net/phy/bcm7xxx.o

After:
   text	   data	    bss	    dec	    hex	filename
   5986	   8210	      0	  14196	   3774	drivers/net/phy/bcm7xxx.o
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d05071ed
...@@ -511,7 +511,7 @@ static int bcm7xxx_config_init(struct phy_device *phydev) ...@@ -511,7 +511,7 @@ static int bcm7xxx_config_init(struct phy_device *phydev)
static int bcm7xxx_suspend(struct phy_device *phydev) static int bcm7xxx_suspend(struct phy_device *phydev)
{ {
int ret; int ret;
const struct bcm7xxx_regs { static const struct bcm7xxx_regs {
int reg; int reg;
u16 value; u16 value;
} bcm7xxx_suspend_cfg[] = { } bcm7xxx_suspend_cfg[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment