Skip to content
Commit 3c6e73e4 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

gpiolib: devres: shrink devm_gpiochip_add_data_with_key()



If all we want to manage is a single pointer, there's no need to
manually allocate and add a new devres. We can simply use
devm_add_action_or_reset() and shrink the code by a good bit.

Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 37174f33
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment