OSDN Git Service

net: qcom/emac: Encapsulate sgmii ops under one structure
authorHemanth Puranik <hpuranik@codeaurora.org>
Wed, 16 May 2018 01:10:53 +0000 (06:40 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 18:33:27 +0000 (14:33 -0400)
commit9e6881d3665688d14b2ad4860f4e28af4ee02b63
tree9872708030fc007fff6088acd0b5a7f7c4ebaefd
parentcfb3e0896824d40cf78fa6cc090ba8ea70039e9d
net: qcom/emac: Encapsulate sgmii ops under one structure

This patch introduces ops structure for sgmii, This by ensures that
we do not need dummy functions in case of emulation platforms.

Signed-off-by: Hemanth Puranik <hpuranik@codeaurora.org>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-mac.c
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c
drivers/net/ethernet/qualcomm/emac/emac-sgmii.h
drivers/net/ethernet/qualcomm/emac/emac.c