diff options
| author | Thierry Reding <[email protected]> | 2017-11-07 18:15:59 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2017-11-08 13:24:51 +0000 |
| commit | 959bc7b22bd25a3a907fbb9b26a1d0cbdf98ef40 (patch) | |
| tree | 4fa59fb33b124369f71dc037e198775b26e08ea4 /net/unix/af_unix.c | |
| parent | gpio: Introduce struct gpio_irq_chip.first (diff) | |
| download | kernel-959bc7b22bd25a3a907fbb9b26a1d0cbdf98ef40.tar.gz kernel-959bc7b22bd25a3a907fbb9b26a1d0cbdf98ef40.zip | |
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 <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Acked-by: Grygorii Strashko <[email protected]>
[renane __gpiochip_add_data() to gpiochip_add_data_with_key]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
