Thread (4 messages) 4 messages, 3 authors, 2014-11-28

Re: [PATCH][v2] mdio-mux-gpio: Use GPIO descriptor interface and new gpiod_set_array function

From: Linus Walleij <hidden>
Date: 2014-11-28 13:49:20
Also in: linux-gpio

On Tue, Nov 25, 2014 at 2:44 PM, Sergei Shtylyov
[off-list ref] wrote:
On 11/25/2014 12:31 PM, Rojhalat Ibrahim wrote:
[...]
quoted
  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...
Yep it complains so I fixed it up when applying the patch.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help