net: phy: mdio-gpio: Swap to using gpio descriptors

This simplifies the code, removing the need to handle active low
flags, etc.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Andrew Lunn
2018-04-19 01:02:55 +02:00
committed by David S. Miller
parent 68abb4f25d
commit c82fc4814a
2 changed files with 20 additions and 63 deletions

View File

@@ -15,13 +15,9 @@
struct mdio_gpio_platform_data {
/* GPIO numbers for bus pins */
unsigned int mdc;
unsigned int mdio;
unsigned int mdo;
bool mdc_active_low;
bool mdio_active_low;
bool mdo_active_low;
struct gpio_desc *mdc;
struct gpio_desc *mdio;
struct gpio_desc *mdo;
};
#endif /* __LINUX_MDIO_GPIO_H */