]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: Initialize the irqchip valid_mask with a callback
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 4 Sep 2019 14:01:04 +0000 (16:01 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Sep 2019 00:09:37 +0000 (01:09 +0100)
commit5fbe5b5883f847363ff1b7280e8b1d2980526b8e
tree806efff2538fb4d6860cae617f4990f47481db7c
parent4f78d91c722345de94a3c72da49b9d0d49cb76b8
gpio: Initialize the irqchip valid_mask with a callback

After changing the valid_mask for the struct gpio_chip
to detect the need and presence of a valid mask with the
presence of a .init_valid_mask() callback to fill it in,
we augment the gpio_irq_chip to use the same logic.

Switch all driver using the gpio_irq_chio valid_mask
over to this new method.

This makes sure the valid_mask for the gpio_irq_chip gets
filled in when we add the gpio_chip, which makes it a
little easier to switch over drivers using the old
way of setting up gpio_irq_chip over to the new method
of passing the gpio_irq_chip along with the gpio_chip.
(See drivers/gpio/TODO for details.)

Cc: Joel Stanley <joel@jms.id.au>
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Link: https://lore.kernel.org/r/20190904140104.32426-1-linus.walleij@linaro.org
drivers/gpio/gpio-aspeed.c
drivers/gpio/gpio-stmpe.c
drivers/gpio/gpio-tqmx86.c
drivers/gpio/gpiolib.c
drivers/pinctrl/intel/pinctrl-baytrail.c
drivers/pinctrl/intel/pinctrl-cherryview.c
drivers/platform/x86/intel_int0002_vgpio.c
include/linux/gpio/driver.h