OSDN Git Service

gpiolib: Document that GPIO line names are not globally unique
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 11 May 2020 10:18:28 +0000 (12:18 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 16 May 2020 09:37:35 +0000 (11:37 +0200)
commit582838ea5bea41258d136c82a6c493a95cda652c
tree1e79ffd92747744ab3717b63289f702af28ce7ea
parented43f2b4e78069ee02687e5a562e1ecd15cbef4f
gpiolib: Document that GPIO line names are not globally unique

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@glider.be>
Link: https://lore.kernel.org/r/20200511101828.30046-1-geert+renesas@glider.be
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c