Re: [PATCH v2 2/2] gpio: search for gpio label if gpio is not found through bank name

2020-02-03 Thread Simon Glass
Hi Heiko, On Sun, 2 Feb 2020 at 22:26, Heiko Schocher wrote: > > Hello Simon, > > Am 03.02.2020 um 01:04 schrieb Simon Glass: > > On Sat, 1 Feb 2020 at 01:03, Heiko Schocher wrote: > >> > >> dm_gpio_lookup_name() searches for a gpio through > >> the bank name. But we have also gpio labels, and i

Re: [PATCH v2 2/2] gpio: search for gpio label if gpio is not found through bank name

2020-02-02 Thread Heiko Schocher
Hello Simon, Am 03.02.2020 um 01:04 schrieb Simon Glass: On Sat, 1 Feb 2020 at 01:03, Heiko Schocher wrote: dm_gpio_lookup_name() searches for a gpio through the bank name. But we have also gpio labels, and it makes sense to search for a gpio also in the labels we have defined, if no gpio is

Re: [PATCH v2 2/2] gpio: search for gpio label if gpio is not found through bank name

2020-02-02 Thread Simon Glass
On Sat, 1 Feb 2020 at 01:03, Heiko Schocher wrote: > > dm_gpio_lookup_name() searches for a gpio through > the bank name. But we have also gpio labels, and it > makes sense to search for a gpio also in the labels > we have defined, if no gpio is found through the > bank name definition. > > This i

[PATCH v2 2/2] gpio: search for gpio label if gpio is not found through bank name

2020-02-01 Thread Heiko Schocher
dm_gpio_lookup_name() searches for a gpio through the bank name. But we have also gpio labels, and it makes sense to search for a gpio also in the labels we have defined, if no gpio is found through the bank name definition. This is useful for example if you have a wp pin on different gpios on dif