]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: broadcom: use auxctl reading helper in BCM54612E code
authorRafał Miłecki <rafal@milecki.pl>
Wed, 25 Jan 2017 20:00:25 +0000 (21:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2017 04:13:44 +0000 (23:13 -0500)
commitb765e8bbfacd87e15bd9732e9ce26fa0368d6dc9
tree849b63163566469599ab451af502b0eeafbb8bf1
parentd61c1ae3328a29a8f4cbda91dc56ecfc0e054cf6
net: phy: broadcom: use auxctl reading helper in BCM54612E code

Starting with commit 2eff778ac2e3 ("net: phy: broadcom: add
bcm54xx_auxctl_read") we have a reading helper so use it and avoid code
duplication.
It also means we don't need MII_BCM54XX_AUXCTL_SHDWSEL_MISC define as
it's the same as MII_BCM54XX_AUXCTL_SHDWSEL_MISC just for reading needs
(same value shifted by 12 bits).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c
include/linux/brcmphy.h