sfc: Use dev_get_drvdata where possible
authorChuhong Yuan <hslester96@gmail.com>
Wed, 24 Jul 2019 11:26:58 +0000 (19:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jul 2019 18:44:46 +0000 (11:44 -0700)
commit3e03a8ba8e1d6c9940a032992f4da2bfba391fdf
treebc16bdac8fa71df0897d43e0322b8d5e15329c68
parentdfa56f83153f08c73e7adfacefd93750da2266ad
sfc: Use dev_get_drvdata where possible

Instead of using to_pci_dev + pci_get_drvdata,
use dev_get_drvdata to make code simpler.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Acked-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/efx.c