Documentation: gpio: fix typo and unclear legacy API section
authorAlexandre Courbot <gnurou@gmail.com>
Sun, 22 Nov 2020 09:25:48 +0000 (18:25 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 5 Dec 2020 19:23:34 +0000 (20:23 +0100)
commita0de695819f63b02645e0c1c8d493324c02b0eb0
tree3fac9c01cc3cf7d271c8f9bae2f27641ff104683
parent105e051f1ae4cf1e94110a834987fdc78673f0c8
Documentation: gpio: fix typo and unclear legacy API section

The "Interacting With the Legacy GPIO Subsystem" of the documentation
was unclear at best, and even included a sentence that seems to say the
opposite of what it should say about the lifetime of the return value of
the conversion functions.

Try to clarify things a bit and hopefully make that section more
readable.

Reported-by: Andy Shevchenko <andy.shevchenko@gmail.com>
BugLink: https://stackoverflow.com/q/64455505/2511795
Signed-off-by: Alexandre Courbot <gnurou@gmail.com>
Link: https://lore.kernel.org/r/20201122092548.61979-1-gnurou@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/driver-api/gpio/consumer.rst