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 | e17ca070e770685445e6d1aa29ff119e071b82db (patch) | |
tree | 724a69e43b18d1a5f4d319d2ca7f04af23f078ac /target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch | |
parent | 0b9b716083c42145a1a0409691d4d67d2761e559 (diff) | |
download | master-187ad058-e17ca070e770685445e6d1aa29ff119e071b82db.tar.gz master-187ad058-e17ca070e770685445e6d1aa29ff119e071b82db.tar.bz2 master-187ad058-e17ca070e770685445e6d1aa29ff119e071b82db.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41080 3c298f89-4303-0410-b956-a3cf2f4a3e73
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; |