diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-04-19 01:02:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-19 15:59:11 -0400 |
commit | c82fc4814a93f36c9b536b5af8dd617e4ee1380f (patch) | |
tree | 6fa54592de0f543199f95f63f0a0a81e74f7be10 /include/linux/platform_data/mdio-gpio.h | |
parent | 68abb4f25d7eaf4d5f40108aa748621ddab68209 (diff) | |
download | linux-c82fc4814a93f36c9b536b5af8dd617e4ee1380f.tar.gz linux-c82fc4814a93f36c9b536b5af8dd617e4ee1380f.tar.bz2 linux-c82fc4814a93f36c9b536b5af8dd617e4ee1380f.zip |
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>
Diffstat (limited to 'include/linux/platform_data/mdio-gpio.h')
-rw-r--r-- | include/linux/platform_data/mdio-gpio.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/linux/platform_data/mdio-gpio.h b/include/linux/platform_data/mdio-gpio.h index af3be0c4ff9b..bd91fa98a3aa 100644 --- a/include/linux/platform_data/mdio-gpio.h +++ b/include/linux/platform_data/mdio-gpio.h @@ -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 */ |