]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: max77620: Use helper variable and clarify
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jul 2020 09:28:35 +0000 (11:28 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 17 Jul 2020 12:03:38 +0000 (14:03 +0200)
commit192958a5470f31c4f82b86f2fa8b0a6e886a031f
tree1095a29272df4aadc36789fb6db095350c30e163
parentb3ed01c7e8b4ebdb0dfe6271dd81be10cc1f0447
gpio: max77620: Use helper variable and clarify

Most other drivers fill out the gpio_irq_chip using a
struct gpio_irq_chip *girq helper variable for ease of
reading.

We also make a habit of explicitly assigning NULL and
zero to the parent IRQs when using ordinary IRQ handlers
in the driver, mostly for code readability and
maintenance.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Cc: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20200716092835.69176-1-linus.walleij@linaro.org
drivers/gpio/gpio-max77620.c