summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-12-04 10:35:08 +0100
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-12-08 09:26:40 +0100
commit6fd9c9933475a3efd7eed2f80c7778908a560a1f (patch)
treeec907289891b1d4f51d363fce199919256dea247 /drivers/gpio
parent069ced2206d23e56b89ed118e17a8a71a05e0ca3 (diff)
gpiolib: use gpiochip_dup_line_label() in for_each helpers
Rework for_each_requested_gpio_in_range() to use the new helper to retrieve a dynamically allocated copy of the descriptor label and free it at the end of each iteration. We need to leverage the CLASS()' destructor to make sure that the label is freed even when breaking out of the loop. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions