diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2019-10-23 14:31:36 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-10-23 14:31:36 +0300 |
commit | fe12e94375da34d62f7d5556161ce7629212ff80 (patch) | |
tree | 8bdcf3d7573f6d5850cf433d97cf0212c96566fb /Documentation/driver-api/gpio | |
parent | 698b8eeaed7287970fc2b6d322618850fd1b1e6c (diff) | |
parent | 228fc01040704f55fd884ab41daf3eafd2644b54 (diff) | |
download | linux-fe12e94375da34d62f7d5556161ce7629212ff80.tar.xz |
Merge tag 'gpio-v5.5-updates-for-linus-part-1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into devel
gpio updates for v5.5
- only get the second IRQ when there is more than one IRQ in mxc
- move the code around in lineevent_create() for some shrinkage
- fix formatting for GPIO docs
- add DT binding for r8a774b1
- convert drivers that prevously used nocache ioremap() to using regular
devm_platform_ioremap_resource()
- remove some redundant error messages
- shrink object code in 104-idi-48e
- drop an unneeded warning from gpiolib-of
Diffstat (limited to 'Documentation/driver-api/gpio')
-rw-r--r-- | Documentation/driver-api/gpio/driver.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/driver-api/gpio/driver.rst b/Documentation/driver-api/gpio/driver.rst index 3fdb32422f8a..18dca55eddfd 100644 --- a/Documentation/driver-api/gpio/driver.rst +++ b/Documentation/driver-api/gpio/driver.rst @@ -415,6 +415,8 @@ If you do this, the additional irq_chip will be set up by gpiolib at the same time as setting up the rest of the GPIO functionality. The following is a typical example of a cascaded interrupt handler using gpio_irq_chip: +.. code-block:: c + /* Typical state container with dynamic irqchip */ struct my_gpio { struct gpio_chip gc; @@ -450,6 +452,8 @@ is a typical example of a cascaded interrupt handler using gpio_irq_chip: The helper support using hierarchical interrupt controllers as well. In this case the typical set-up will look like this: +.. code-block:: c + /* Typical state container with dynamic irqchip */ struct my_gpio { struct gpio_chip gc; |