net: hns3: remove back in struct hclge_hw
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 28 Jun 2018 04:12:28 +0000 (12:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2018 02:06:34 +0000 (11:06 +0900)
commit541a7bd6bf23a1f4b5a1353b175279e0ba407871
tree7b71e07be92417b1c1af72a5df8dfe4d3751293e
parent43e2b1c7f4a498520c741b4c0a89f8475bd8b950
net: hns3: remove back in struct hclge_hw

hclge_hw is embedded in hclge_dev, so use container_of instead of
back to get hclge_dev.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h