OSDN Git Service

net: fixed-phy: Add fixed_phy_register_with_gpiod() API
authorMoritz Fischer <mdf@kernel.org>
Thu, 7 Feb 2019 17:52:10 +0000 (09:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 02:11:58 +0000 (18:11 -0800)
commit71bd106d2567675668e253cba3960e3c4bf2e80e
treee8f34fc458693dd53076ee2993ddb0402966ef0e
parenta4751093a26c6bbdff86c113e7f76cf4eaf22210
net: fixed-phy: Add fixed_phy_register_with_gpiod() API

Add fixed_phy_register_with_gpiod() API. It lets users create a
fixed_phy instance that uses a GPIO descriptor which was obtained
externally e.g. through platform data.
This enables platform devices (non-DT based) to use GPIOs for link
status.

Signed-off-by: Moritz Fischer <mdf@kernel.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c
include/linux/phy_fixed.h