commit | b82b21391092c87d257467762eacf496f43c6874 | [log] [tgz] |
---|---|---|
author | Fuqian Huang <huangfq.daxian@gmail.com> | Thu Jul 04 10:36:40 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Jul 05 15:25:04 2019 -0700 |
tree | c5c197ac4256510e44853d8f8b4ebf1b63d36a8b | |
parent | 233cc605a2ef2ec051086b360e0e47c54bba7c32 [diff] |
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>