diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2017-06-12 23:55:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-13 12:56:42 -0400 |
commit | d396e84c56047b303cac378dde4b2e5cc430b336 (patch) | |
tree | f9ed8ae00f7435c3be2237bdad8e1cde780870e2 /include/linux/phy.h | |
parent | 61d3e1d9bc2a1910d773cbf4ed6f587a7a6166b5 (diff) | |
download | op-kernel-dev-d396e84c56047b303cac378dde4b2e5cc430b336.zip op-kernel-dev-d396e84c56047b303cac378dde4b2e5cc430b336.tar.gz |
mdio_bus: handle only single PHY reset GPIO
Commit 4c5e7a2c0501 ("dt-bindings: mdio: Clarify binding document")
declared that a MDIO reset GPIO property should have only a single GPIO
reference/specifier, however the supporting code was left intact, still
burdening the kernel with now apparently useless loops -- get rid of them.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 4142422..51bea65 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -226,10 +226,8 @@ struct mii_bus { /* GPIO reset pulse width in microseconds */ int reset_delay_us; - /* Number of reset GPIOs */ - int num_reset_gpios; - /* Array of RESET GPIO descriptors */ - struct gpio_desc **reset_gpiod; + /* RESET GPIO descriptor pointer */ + struct gpio_desc *reset_gpiod; }; #define to_mii_bus(d) container_of(d, struct mii_bus, dev) |