On Thu, Aug 27, 2020 at 12:04:13AM +0300, Andy Shevchenko wrote: > On Wednesday, August 26, 2020, Krzysztof Kozlowski <krzk@xxxxxxxxxx> 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