gpiolib: keep comment consistent with code
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Sat, 14 Nov 2015 08:43:20 +0000 (16:43 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 19 Nov 2015 08:24:39 +0000 (09:24 +0100)
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>
drivers/gpio/gpiolib.c

index dfe09c06df49a26444a845fdda3d7835807dc902..44c8d83527489814894a8539e7631b887f88d166 100644 (file)
@@ -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)
 {
This page took 0.025576 seconds and 5 git commands to generate.