]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
gpio: provide lockdep keys for nested/unnested irqchips
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Jan 2017 12:37:07 +0000 (13:37 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 19 Jan 2017 08:57:20 +0000 (09:57 +0100)
commit739e6f5945d88dcee01590913f6886132a10c215
tree5c53e38e08e39a10e827757c7057838e977e38fa
parent49def1853334396f948dcb4cedb9347abb318df5
gpio: provide lockdep keys for nested/unnested irqchips

The helper function for adding a GPIO chip compiles in a lockdep
key for debugging, the same key is needed for nested chips as
well.

The macro construction is unreadable, replace this with two
static inlines instead.

The _gpiochip_irqchip_add prefixed function is not helpful,
rename it with gpiochip_irqchip_add_key() that tell us what the
function is actually doing.

Fixes: d245b3f9bd36 ("gpio: simplify adding threaded interrupts")
Cc: Roger Quadros <rogerq@ti.com>
Reported-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Reported-by: Roger Quadros <rogerq@ti.com>
Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Tested-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Tested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h