summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorBamvor Jian Zhang2015-11-14 09:43:20 +0100
committerLinus Walleij2015-11-19 09:24:39 +0100
commited37915cb1fde446bd52069d7a708301b7e7b607 (patch)
tree1cef29549d4d146e3782af64e36bbb029c54f244 /drivers/gpio/gpiolib.c
parentgpio: pxa: change initcall level second attempt (diff)
downloadkernel-qcow2-linux-ed37915cb1fde446bd52069d7a708301b7e7b607.tar.gz
kernel-qcow2-linux-ed37915cb1fde446bd52069d7a708301b7e7b607.tar.xz
kernel-qcow2-linux-ed37915cb1fde446bd52069d7a708301b7e7b607.zip
gpiolib: keep comment consistent with code
The commit f881bab038c9 ("gpio: keep the GPIO line names internal") change the error to warning in gpiochip_set_desc_names. Update the comment accordingly. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index dfe09c06df49..44c8d8352748 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -252,7 +252,7 @@ static struct gpio_desc *gpio_name_to_desc(const char * const name)
* Takes the names from gc->names and checks if they are all unique. If they
* are, they are assigned to their gpio descriptors.
*
- * Returns -EEXIST if one of the names is already used for a different GPIO.
+ * Warning if one of the names is already used for a different GPIO.
*/
static int gpiochip_set_desc_names(struct gpio_chip *gc)
{