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)
commit80606cb24161d504acb4d89f406d68f72196575e
tree1095a29272df4aadc36789fb6db095350c30e163
parent761b5c30c206ba1788c6ceb23e5812f319548b52
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