net/ethernet: using dev_get_drvdata directly
authorFuqian Huang <huangfq.daxian@gmail.com>
Thu, 4 Jul 2019 02:36:40 +0000 (10:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:25:04 +0000 (15:25 -0700)
commitb82b21391092c87d257467762eacf496f43c6874
treec5c197ac4256510e44853d8f8b4ebf1b63d36a8b
parent233cc605a2ef2ec051086b360e0e47c54bba7c32
net/ethernet: using dev_get_drvdata directly

Several drivers cast a struct device pointer to a struct
platform_device pointer only to then call platform_get_drvdata().
To improve readability, these constructs can be simplified
by using dev_get_drvdata() directly.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/calxeda/xgmac.c