diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-03-17 15:54:21 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-03-27 20:25:14 +0100 |
commit | 35c6cfb4340c199974f06a36670f7d1e9d32e1c7 (patch) | |
tree | 7993e9cec0c3cfe659c21045224b0d0c8d1c8b6d /drivers/gpio | |
parent | gpio: tegra186: Add Tegra194 pin ranges for GG.0 and GG.1 (diff) | |
download | linux-35c6cfb4340c199974f06a36670f7d1e9d32e1c7.tar.xz linux-35c6cfb4340c199974f06a36670f7d1e9d32e1c7.zip |
gpio: gpiolib: fix a doc warning
Use a different markup for the ERR_PTR, as %FOO doesn't work
if there are parenthesis. So, use, instead:
``ERR_PTR(-EINVAL)``
This fixes the following warning:
./drivers/gpio/gpiolib.c:139: WARNING: Inline literal start-string without end-string.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/51197e3568f073e22c280f0584bfa20b44436708.1584456635.git.mchehab+huawei@kernel.org
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpiolib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 4a36164843d9..44f2a449729f 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -136,7 +136,7 @@ EXPORT_SYMBOL_GPL(gpio_to_desc); * @hwnum: hardware number of the GPIO for this chip * * Returns: - * A pointer to the GPIO descriptor or %ERR_PTR(-EINVAL) if no GPIO exists + * A pointer to the GPIO descriptor or ``ERR_PTR(-EINVAL)`` if no GPIO exists * in the given chip for the specified hardware number. */ struct gpio_desc *gpiochip_get_desc(struct gpio_chip *chip, |