aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2023-12-04 09:35:08 +0000
committerBartosz Golaszewski <[email protected]>2023-12-08 08:26:40 +0000
commit6fd9c9933475a3efd7eed2f80c7778908a560a1f (patch)
treeec907289891b1d4f51d363fce199919256dea247 /scripts/gcc-plugins
parentpinctrl: sppctl: use gpiochip_dup_line_label() (diff)
downloadkernel-6fd9c9933475a3efd7eed2f80c7778908a560a1f.tar.gz
kernel-6fd9c9933475a3efd7eed2f80c7778908a560a1f.zip
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 <[email protected]> Acked-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions