From: Guangbin Huang huangguangbin2@huawei.com
driver inclusion category: cleanup bugzilla: NA CVE: NA
As struct hclge_mdio_cfg_cmd is only used in hclge_mdio.c, this patch move its declaration from hclge_mdio.h to hclge_mdio.c.
Signed-off-by: Guangbin Huang huangguangbin2@huawei.com Reviewed-by: Peng Li lipeng321@huawei.com Reviewed-by: Zhong Zhaohui zhongzhaohui@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 11 +++++++++++ drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.h | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c index 4dd8b42..f31b2e5 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c @@ -28,6 +28,17 @@ enum hclge_mdio_c22_op_seq {
#define HCLGE_MDIO_STA_B 0
+struct hclge_mdio_cfg_cmd { + u8 ctrl_bit; + u8 phyid; + u8 phyad; + u8 rsvd; + __le16 reserve; + __le16 data_wr; + __le16 data_rd; + __le16 sta; +}; + static int hclge_mdio_write(struct mii_bus *bus, int phyid, int regnum, u16 data) { diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.h index 787fa9c6..ef095d9 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.h @@ -4,17 +4,6 @@ #ifndef __HCLGE_MDIO_H #define __HCLGE_MDIO_H
-struct hclge_mdio_cfg_cmd { - u8 ctrl_bit; - u8 phyid; - u8 phyad; - u8 rsvd; - __le16 reserve; - __le16 data_wr; - __le16 data_rd; - __le16 sta; -}; - int hclge_mac_mdio_config(struct hclge_dev *hdev); int hclge_mac_connect_phy(struct hnae3_handle *handle); void hclge_mac_disconnect_phy(struct hnae3_handle *handle);