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

2020-08-26 Thread Krzysztof Kozlowski
On Thu, Aug 27, 2020 at 12:04:13AM +0300, Andy Shevchenko wrote: > On Wednesday, August 26, 2020, Krzysztof Kozlowski wrote: > > > Add devm_fwnode_gpiod_get_optional() and > > devm_fwnode_gpiod_get_index_optional() helpers, similar to regular > > devm_gpiod optional versions. Drivers getting GPI

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

2020-08-26 Thread Krzysztof Kozlowski
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. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New pat