Documentation: gpio: Fix IRQ mask and unmask examples
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 12 May 2022 17:39:17 +0000 (20:39 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 May 2022 17:16:54 +0000 (20:16 +0300)
commitbdb6528ec5504ccc5a9da768a406579e7670dd2b
treed16962378c8104486af41ce8151efdc5472b6eef
parentf68cd356d0ac0101263c551bd951db2082d38e43
Documentation: gpio: Fix IRQ mask and unmask examples

After switching to immutable IRQ chips for GPIO drivers the examples become
uncompilable due to wrong IRQ API, i.e. irq_desc_get_handler_data() in use.
Replace it with proper irq_data_get_irq_chip_data() call where it applies.

Fixes: 5644b66a9c63 ("Documentation: Update the recommended pattern for GPIO irqchips")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/driver-api/gpio/driver.rst