net: phy: mdio-gpio: Parse properties directly into bitbang structure
authorAndrew Lunn <andrew@lunn.ch>
Wed, 18 Apr 2018 23:02:57 +0000 (01:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 19:59:11 +0000 (15:59 -0400)
commit4029ea3a8625bc699210623a106e887c2761fead
treeadaa721e821195d0279824e14bfa5e10a07e38a2
parentfb766421d881a849c80c7cb80e8ccbbddeb55d9d
net: phy: mdio-gpio: Parse properties directly into bitbang structure

The same parsing code can be used for both OF and platform devices, if
the platform device uses a gpiod_lookup_table. Parse these properties
directly into the bitbang structure, rather than use an intermediate
platform data structure.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-gpio.c