commit | 3c6e73e47afc874c231b48157be669efaf768471 | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Tue Nov 10 10:39:21 2020 +0100 |
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Mon Nov 16 11:27:33 2020 +0100 |
tree | 9ac6ebc6e5259231bcb55cd6e91b2fc97ebbf99d | |
parent | 37174f3341306eaea7b7f4f5cc624e0040305a98 [diff] |
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: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>