]> git.baikalelectronics.ru Git - kernel.git/commit
net: qcom/emac: rename emac_phy to emac_sgmii and move it
authorTimur Tabi <timur@codeaurora.org>
Fri, 20 Jan 2017 23:21:03 +0000 (17:21 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jan 2017 17:54:35 +0000 (12:54 -0500)
commit80633f0efa7770cfd439d0800ba18d48f956cfcf
treef62b81468e508ecad741924eadc2accae582f31e
parent3c02c98ffe7e76229fadf660e512720c38b668a7
net: qcom/emac: rename emac_phy to emac_sgmii and move it

The EMAC has an internal PHY that is often called the "SGMII".  This
SGMII is also connected to an external PHY, which is managed by phylib.
These dual PHYs often cause confusion.  In this case, the data structure
for managing the SGMII was mis-named and located in the wrong header file.

Structure emac_phy is renamed to emac_sgmii to clearly indicate it applies
to the internal PHY only.  It also also moved from emac_phy.h (which
supports the external PHY) to emac_sgmii.h (where it belongs).

To keep the changes minimal, only the structure name is changed, not
the names of any variables of that type.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-phy.c
drivers/net/ethernet/qualcomm/emac/emac-phy.h
drivers/net/ethernet/qualcomm/emac/emac-sgmii-fsm9900.c
drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2400.c
drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2432.c
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c
drivers/net/ethernet/qualcomm/emac/emac-sgmii.h
drivers/net/ethernet/qualcomm/emac/emac.c
drivers/net/ethernet/qualcomm/emac/emac.h