driver.rst (1913c7f3fc2514e09262baf2267a82dfdb215c39) driver.rst (0ac624f47dd3474441bb56d64f97192f139b593f)
1=====================
2GPIO Driver Interface
3=====================
4
5This document serves as a guide for writers of GPIO chip drivers.
6
7Each GPIO controller driver needs to include the following header, which defines
8the structures used to define a GPIO driver:

--- 479 unchanged lines hidden (view full) ---

488
489The old way of adding irqchips to gpiochips after registration is also still
490available but we try to move away from this:
491
492- DEPRECATED: gpiochip_irqchip_add(): adds a chained cascaded irqchip to a
493 gpiochip. It will pass the struct gpio_chip* for the chip to all IRQ
494 callbacks, so the callbacks need to embed the gpio_chip in its state
495 container and obtain a pointer to the container using container_of().
1=====================
2GPIO Driver Interface
3=====================
4
5This document serves as a guide for writers of GPIO chip drivers.
6
7Each GPIO controller driver needs to include the following header, which defines
8the structures used to define a GPIO driver:

--- 479 unchanged lines hidden (view full) ---

488
489The old way of adding irqchips to gpiochips after registration is also still
490available but we try to move away from this:
491
492- DEPRECATED: gpiochip_irqchip_add(): adds a chained cascaded irqchip to a
493 gpiochip. It will pass the struct gpio_chip* for the chip to all IRQ
494 callbacks, so the callbacks need to embed the gpio_chip in its state
495 container and obtain a pointer to the container using container_of().
496 (See Documentation/driver-model/design-patterns.txt)
496 (See Documentation/driver-api/driver-model/design-patterns.rst)
497
498- gpiochip_irqchip_add_nested(): adds a nested cascaded irqchip to a gpiochip,
499 as discussed above regarding different types of cascaded irqchips. The
500 cascaded irq has to be handled by a threaded interrupt handler.
501 Apart from that it works exactly like the chained irqchip.
502
503- DEPRECATED: gpiochip_set_chained_irqchip(): sets up a chained cascaded irq
504 handler for a gpio_chip from a parent IRQ and passes the struct gpio_chip*

--- 139 unchanged lines hidden ---
497
498- gpiochip_irqchip_add_nested(): adds a nested cascaded irqchip to a gpiochip,
499 as discussed above regarding different types of cascaded irqchips. The
500 cascaded irq has to be handled by a threaded interrupt handler.
501 Apart from that it works exactly like the chained irqchip.
502
503- DEPRECATED: gpiochip_set_chained_irqchip(): sets up a chained cascaded irq
504 handler for a gpio_chip from a parent IRQ and passes the struct gpio_chip*

--- 139 unchanged lines hidden ---