[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <547487A4.6050203@cogentembedded.com>
Date: Tue, 25 Nov 2014 16:44:04 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Rojhalat Ibrahim <imr@...chenk.de>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
netdev@...r.kernel.org
CC: Linus Walleij <linus.walleij@...aro.org>,
Alexandre Courbot <acourbot@...dia.com>,
David Miller <davem@...emloft.net>,
Florian Fainelli <f.fainelli@...il.com>,
David Daney <david.daney@...ium.com>
Subject: Re: [PATCH][v2] mdio-mux-gpio: Use GPIO descriptor interface and
new gpiod_set_array function
Hello.
On 11/25/2014 12:31 PM, Rojhalat Ibrahim wrote:
> Convert mdio-mux-gpio to the GPIO descriptor interface and use the new
> gpiod_set_array function to set all output signals simultaneously.
> Signed-off-by: Rojhalat Ibrahim <imr@...chenk.de>
> Acked-by: David S. Miller <davem@...emloft.net>
> --
> This patch depends on the gpiod_set_array function, which is available in
> the linux-gpio devel tree.
> v2: fix gpiod_get_index usage
> drivers/net/phy/mdio-mux-gpio.c | 38 ++++++++++++++------------------------
> 1 file changed, 14 insertions(+), 24 deletions(-)
> diff --git a/drivers/net/phy/mdio-mux-gpio.c b/drivers/net/phy/mdio-mux-gpio.c
> index 0966951..1167c5b 100644
> --- a/drivers/net/phy/mdio-mux-gpio.c
> +++ b/drivers/net/phy/mdio-mux-gpio.c
[...]
> @@ -98,15 +84,19 @@ static int mdio_mux_gpio_probe(struct platform_device *pdev)
[...]
> static int mdio_mux_gpio_remove(struct platform_device *pdev)
> {
> + unsigned int n;
> struct mdio_mux_gpio_state *s = dev_get_platdata(&pdev->dev);
> mdio_mux_uninit(s->mux_handle);
> + for (n = 0; n < s->num_gpios; n++) {
> + gpiod_put(s->gpio[n]);
> + }
{} not needed; scripts/checkpatch.pl should have complained...
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists