Re: [PATCH v2 1/2] gpio: Add devm_fwnode_gpiod_get_optional() helpers

Krzysztof Kozlowski
2020-08-27T06:16:14Z

On Thu, Aug 27, 2020 at 12:04:13AM +0300, Andy Shevchenko wrote:
> On Wednesday, August 26, 2020, Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> > Add devm_fwnode_gpiod_get_optional() and
> > devm_fwnode_gpiod_get_index_optional() helpers, similar to regular
> > devm_gpiod optional versions. Drivers getting GPIOs from a firmware
> > node might use it to remove some boilerplate code.
> >
>
>
> Shouldn't it return NULL for !GPIO case?

Indeed, good point.

Best regards,
Krzysztof