Re: [PATCH] gpiolib: Document that GPIO line names are not globally unique

From: Linus Walleij
Date: Sat May 16 2020 - 05:38:12 EST


On Mon, May 11, 2020 at 12:18 PM Geert Uytterhoeven
<geert+renesas@xxxxxxxxx> wrote:

> gpiochip_set_desc_names() no longer rejects GPIO line name collisions.
> Hence GPIO line names are not guaranteed to be globally unique.
> In case of multiple GPIO lines with the same name, gpio_name_to_desc()
> will return the first match found.
>
> Update the comments for gpio_name_to_desc() and
> gpiochip_set_desc_names() to match reality.
>
> Fixes: f881bab038c9667d ("gpio: keep the GPIO line names internal")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

Patch applied.

Yours,
Linus Walleij