Messages in this thread | | | Date | Fri, 21 Jun 2019 13:06:10 +0100 | From | Mark Brown <> | Subject | Re: [PATCH] gpio: Fix return value mismatch of function gpiod_get_from_of_node() |
| |
On Wed, Jun 19, 2019 at 09:54:48AM +0000, Waibel Georg wrote: > In case the requested gpio property is not found in the device tree, some > callers of gpiod_get_from_of_node() expect a return value of NULL, others > expect -ENOENT. > In particular devm_fwnode_get_index_gpiod_from_child() expects -ENOENT. > Currently it gets a NULL, which breaks the loop that tries all > gpio_suffixes. The result is that a gpio property is not found, even > though it is there.
Acked-by: Mark Brown <broonie@kernel.org> [unhandled content-type:application/pgp-signature] | |