gpio: add irq domain activate/deactivate functions
authorBrian Masney <masneyb@onstation.org>
Sat, 19 Jan 2019 20:42:42 +0000 (15:42 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 24 Jan 2019 14:33:04 +0000 (15:33 +0100)
commitef74f70e5a10cc2a78cc5529e564170cabcda9af
tree95bbdf0e9e868ee3ed31bbf796e57f49c28864ae
parent12a9eeaebba34f4f0abe1548ecb460414e285c49
gpio: add irq domain activate/deactivate functions

This adds the two new functions gpiochip_irq_domain_activate and
gpiochip_irq_domain_deactivate that can be used as the activate and
deactivate functions in the struct irq_domain_ops. This is for
situations where only gpiochip_{lock,unlock}_as_irq needs to be called.
SPMI and SSBI GPIO are two users that will initially use these
functions.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Suggested-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h