aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2018-04-18 19:02:55 -0400
committerDavid S. Miller <davem@davemloft.net>2018-04-19 15:59:11 -0400
commitc82fc4814a93f36c9b536b5af8dd617e4ee1380f (patch)
tree6fa54592de0f543199f95f63f0a0a81e74f7be10 /include/linux/platform_data
parent68abb4f25d7eaf4d5f40108aa748621ddab68209 (diff)
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')
-rw-r--r--include/linux/platform_data/mdio-gpio.h10
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 @@
15 15
16struct mdio_gpio_platform_data { 16struct mdio_gpio_platform_data {
17 /* GPIO numbers for bus pins */ 17 /* GPIO numbers for bus pins */
18 unsigned int mdc; 18 struct gpio_desc *mdc;
19 unsigned int mdio; 19 struct gpio_desc *mdio;
20 unsigned int mdo; 20 struct gpio_desc *mdo;
21
22 bool mdc_active_low;
23 bool mdio_active_low;
24 bool mdo_active_low;
25}; 21};
26 22
27#endif /* __LINUX_MDIO_GPIO_H */ 23#endif /* __LINUX_MDIO_GPIO_H */