gpiolib: make comment consistent with code
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Wed, 18 Nov 2015 09:07:07 +0000 (17:07 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 29 Nov 2015 21:37:10 +0000 (22:37 +0100)
Commit f4d566a8a0e6 ("gpio: change member .dev to .parent") changes
member of gpiochip from .dev to .parent. Update the corresponding
comment.

Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c

index 89e01538e40ee845176460539551f2992b05eece..e63bebc9ae602b932f1cdc2625b2c3bb1ee77276 100644 (file)
@@ -306,7 +306,7 @@ static int gpiochip_set_desc_names(struct gpio_chip *gc)
  * different chip.  Otherwise it returns zero as a success code.
  *
  * When gpiochip_add() is called very early during boot, so that GPIOs
- * can be freely used, the chip->dev device must be registered before
+ * can be freely used, the chip->parent device must be registered before
  * the gpio framework's arch_initcall().  Otherwise sysfs initialization
  * for GPIOs will fail rudely.
  *
@@ -714,7 +714,8 @@ int _gpiochip_irqchip_add(struct gpio_chip *gpiochip,
 #ifdef CONFIG_OF_GPIO
        /*
         * If the gpiochip has an assigned OF node this takes precedence
-        * FIXME: get rid of this and use gpiochip->dev->of_node everywhere
+        * FIXME: get rid of this and use gpiochip->parent->of_node
+        * everywhere
         */
        if (gpiochip->of_node)
                of_node = gpiochip->of_node;
This page took 0.025604 seconds and 5 git commands to generate.