net: eepro100: Pass PCI BDF into bus_to_phys()/phys_to_bus()
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 23 May 2020 14:38:41 +0000 (16:38 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 18 Jun 2020 17:34:40 +0000 (19:34 +0200)
commitfa9e12102dfc6a5f1f10a75fd1804c16a166ded9
tree85aa29e94e9851024108d133a548e2f223992812
parentacdf5d88827a0420ed0ceee3e45fa08f9d39b483
net: eepro100: Pass PCI BDF into bus_to_phys()/phys_to_bus()

This is a trick in preparation for adding DM support. By passing in
the PCI BDF into the bus_to_phys()/phys_to_bus() macros and calling
that dev, we can substitute dev with udevice when DM support lands
and do minor adjustment to the macros to support both DM and non-DM
operation. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
drivers/net/eepro100.c