net: mdio-gpio: Convert to use gpiod functions where possible
authorGuenter Roeck <linux@roeck-us.net>
Wed, 11 Jan 2017 20:59:50 +0000 (12:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jan 2017 20:05:10 +0000 (15:05 -0500)
commit7e5fbd1e0700f1bdb94508f84ec2aeb01eed7b12
treef2f271783b8e3a36f9cda91d335502d273e1bb05
parent08d9665cfed37b51766284ca2f9b6e4f3ccd6959
net: mdio-gpio: Convert to use gpiod functions where possible

Using gpiod functions lets us use functionality which is not available
with gpio functions.

There is no gpiod function to match devm_gpio_request_one, so leave it
in place and use gpio_to_desc() to convert absolute pin numbers to gpio
descriptors.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-gpio.c