]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpio: fix misleading comment
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Dec 2015 14:31:58 +0000 (15:31 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Jan 2016 10:21:20 +0000 (11:21 +0100)
We are not relying on container_of() now that we have
gpiochip_get_data().

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

index 905408b8d54b7530eae53243d6e171afa372ce8f..3db34e74bc340a86e7d17099e6c747bc38c0175e 100644 (file)
@@ -688,7 +688,7 @@ static void gpiochip_irqchip_remove(struct gpio_chip *gpiochip)
  * gpiochip, providing an irq domain to translate the local IRQs to
  * global irqs in the gpiolib core, and making sure that the gpiochip
  * is passed as chip data to all related functions. Driver callbacks
- * need to use container_of() to get their local state containers back
+ * need to use gpiochip_get_data() to get their local state containers back
  * from the gpiochip passed as chip data. An irqdomain will be stored
  * in the gpiochip that shall be used by the driver to handle IRQ number
  * translation. The gpiochip will need to be initialized and registered