Thread (1 message) 1 message, 1 author, 2020-08-27

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

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2020-08-27 06:16:14
Also in: linux-gpio, lkml

On Thu, Aug 27, 2020 at 12:04:13AM +0300, Andy Shevchenko wrote:
On Wednesday, August 26, 2020, Krzysztof Kozlowski [off-list ref] wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help