Documentation: gpio: Advertise irqd_to_hwirq() helper in the examples
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 12 May 2022 17:39:18 +0000 (20:39 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 May 2022 17:16:54 +0000 (20:16 +0300)
commite9fdcc2d8376d15ea22c0e985eeca20330f8ff17
tree2153ab378895bbeec59d76aa6f7df887d5c87b1a
parentbdb6528ec5504ccc5a9da768a406579e7670dd2b
Documentation: gpio: Advertise irqd_to_hwirq() helper in the examples

Instead of direct dereferencing the IRQ data in order to get HW IRQ number
use the irqd_to_hwirq() helper.

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