summaryrefslogtreecommitdiffstats
path: root/Documentation/driver-api/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2020-10-19 15:44:29 +0200
committerLinus Walleij <linus.walleij@linaro.org>2020-10-28 15:51:27 +0100
commit8aa16335050663357281fb1f1b0483ab91b4d8de (patch)
tree0f39d1eed9a75eedfd1de510dacf3013d2d838ef /Documentation/driver-api/gpio
parentf1f37abbe6fc2b1242f78157db76e48dbf9518ee (diff)
downloadlinux-8aa16335050663357281fb1f1b0483ab91b4d8de.tar.gz
linux-8aa16335050663357281fb1f1b0483ab91b4d8de.tar.bz2
linux-8aa16335050663357281fb1f1b0483ab91b4d8de.zip
gpio: stmpe: Fix forgotten refactoring
We actually handle the gpio_irq_chip set-up properly now despite what the comment says. Also assign this pointer along with the rest of the gpio_irq_chip setup code. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20201019134429.65563-1-linus.walleij@linaro.org
Diffstat (limited to 'Documentation/driver-api/gpio')
-rw-r--r--Documentation/driver-api/gpio/driver.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/driver-api/gpio/driver.rst b/Documentation/driver-api/gpio/driver.rst
index 65d708093b71..0fb57e298b41 100644
--- a/Documentation/driver-api/gpio/driver.rst
+++ b/Documentation/driver-api/gpio/driver.rst
@@ -538,8 +538,8 @@ these helpers, we can set .irq.need_valid_mask of the gpiochip before
devm_gpiochip_add_data() or gpiochip_add_data() is called. This allocates an
.irq.valid_mask with as many bits set as there are GPIO lines in the chip, each
bit representing line 0..n-1. Drivers can exclude GPIO lines by clearing bits
-from this mask. The mask must be filled in before gpiochip_irqchip_add() or
-gpiochip_irqchip_add_nested() is called.
+from this mask. The mask can be filled in the init_valid_mask() callback
+that is part of the struct gpio_irq_chip.
To use the helpers please keep the following in mind: