summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-12-07 17:31:58 +0300
committerLinus Walleij <linus.walleij@linaro.org>2016-01-05 13:21:20 +0300
commit09dd5f9e240e738b4d5e2e602c3b66659babf068 (patch)
treebe740b0f4be010ea2eafe8b4495df7082d762a57 /drivers/gpio
parent4eab22e748b550045b8a98be3b72f31e22557605 (diff)
downloadlinux-09dd5f9e240e738b4d5e2e602c3b66659babf068.tar.xz
gpio: fix misleading comment
We are not relying on container_of() now that we have gpiochip_get_data(). Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-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 905408b8d54b..3db34e74bc34 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -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