linux-uconsole/include/linux/gpio
Thierry Reding 959bc7b22b gpio: Automatically add lockdep keys
In order to avoid lockdep boilerplate in individual drivers, turn the
gpiochip_add_data() function into a macro that creates a unique class
key for each driver.

Note that this has the slight disadvantage of adding a key for each
driver registered with the system. However, these keys are 8 bytes in
size, which is negligible and a small price to pay for generic
infrastructure.

Suggested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
[renane __gpiochip_add_data() to gpiochip_add_data_with_key]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2017-11-08 14:24:51 +01:00
..
consumer.h gpio: Introduce ->get_multiple callback 2017-10-19 22:32:39 +02:00
driver.h gpio: Automatically add lockdep keys 2017-11-08 14:24:51 +01:00
gpio-reg.h gpio: gpio-reg: add irq mapping for gpio-reg users 2017-03-24 14:05:00 +01:00
machine.h gpio: Fix loose spelling 2017-10-20 09:37:32 +02:00