Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpiolib: make comment consistent with code

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>

authored by

Bamvor Jian Zhang and committed by
Linus Walleij
c88402c2 6e0171b4

+3 -2
+3 -2
drivers/gpio/gpiolib.c
··· 306 306 * different chip. Otherwise it returns zero as a success code. 307 307 * 308 308 * When gpiochip_add() is called very early during boot, so that GPIOs 309 - * can be freely used, the chip->dev device must be registered before 309 + * can be freely used, the chip->parent device must be registered before 310 310 * the gpio framework's arch_initcall(). Otherwise sysfs initialization 311 311 * for GPIOs will fail rudely. 312 312 * ··· 714 714 #ifdef CONFIG_OF_GPIO 715 715 /* 716 716 * If the gpiochip has an assigned OF node this takes precedence 717 - * FIXME: get rid of this and use gpiochip->dev->of_node everywhere 717 + * FIXME: get rid of this and use gpiochip->parent->of_node 718 + * everywhere 718 719 */ 719 720 if (gpiochip->of_node) 720 721 of_node = gpiochip->of_node;