OSDN Git Service

gpio: crystalcove: Use irqchip template
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 21 Jul 2020 14:01:53 +0000 (16:01 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 Jul 2020 13:00:27 +0000 (16:00 +0300)
commit945e72db36bd12767601b332b2aa50c888537afa
tree763a1f9a34168a7afe9b8d2beff07ec5ab9c43f0
parent3abbdbe3dcd39547478e8ff089026a315a124376
gpio: crystalcove: Use irqchip template

This makes the driver use the irqchip template to assign
properties to the gpio_irq_chip instead of using the
explicit calls to gpiochip_irqchip_add_nested() and
gpiochip_set_nested_irqchip(). The irqchip is instead
added while adding the gpiochip.

Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-crystalcove.c