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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 25, 2014 at 2:44 PM, Sergei Shtylyov
<sergei.shtylyov@xxxxxxxxxxxxxxxxxx> wrote:
> On 11/25/2014 12:31 PM, Rojhalat Ibrahim wrote:
> [...]
>>
>>   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
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux