diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:25 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:25 +0000 |
commit | ea9360a5c645b44bdeea50d90e7946097d61a813 (patch) | |
tree | b71ca22affd7b9533b8f82e823b77e144c13d2cf /target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch | |
parent | b482d8ff64f70d07a37b7187700c637a45aef1bc (diff) | |
download | upstream-ea9360a5c645b44bdeea50d90e7946097d61a813.tar.gz upstream-ea9360a5c645b44bdeea50d90e7946097d61a813.tar.bz2 upstream-ea9360a5c645b44bdeea50d90e7946097d61a813.zip |
atheros: avoid CamelCase
Change fooBar variables names to foo_bar as suggested by checkpatch,
write few tables names in lower case and correctly place __initdata
keyword.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 41080
Diffstat (limited to 'target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch')
-rw-r--r-- | target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch b/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch index e8879f41db..4f712ac9cd 100644 --- a/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch +++ b/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch @@ -562,11 +562,11 @@ +static void ar231x_check_link(struct net_device *dev) +{ + struct ar231x_private *sp = netdev_priv(dev); -+ u16 phyData; ++ u16 phy_data; + -+ phyData = ar231x_mdiobus_read(sp->mii_bus, sp->phy, MII_BMSR); -+ if (sp->phyData != phyData) { -+ if (phyData & BMSR_LSTATUS) { ++ phy_data = ar231x_mdiobus_read(sp->mii_bus, sp->phy, MII_BMSR); ++ if (sp->phy_data != phy_data) { ++ if (phy_data & BMSR_LSTATUS) { + /* link is present, ready link partner ability to deterine + duplexity */ + int duplex = 0; @@ -601,7 +601,7 @@ + /* no link */ + sp->link = 0; + } -+ sp->phyData = phyData; ++ sp->phy_data = phy_data; + } +} + @@ -1586,7 +1586,7 @@ + unsigned short phy; /* merlot phy = 1, samsung phy = 0x1f */ + unsigned short mac; + unsigned short link; /* 0 - link down, 1 - link up */ -+ u16 phyData; ++ u16 phy_data; + + struct tasklet_struct rx_tasklet; + int unloading; |