summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-09-27 17:29:23 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-10-04 14:29:31 +0300
commitcfe102f63308c8c8e01199a682868a64b83f653e (patch)
treebfdbc2a94b76a3c9a971d4b2c514d153ceafaba2 /scripts/lib/kdoc/kdoc_output.py
parent9e4555d1e54a18946d7ca363b9fc8ed1fe7dfde4 (diff)
downloadlinux-cfe102f63308c8c8e01199a682868a64b83f653e.tar.xz
gpiolib: provide gpio_device_find()
gpiochip_find() is wrong and its kernel doc is misleading as the function doesn't return a reference to the gpio_chip but just a raw pointer. The chip itself is not guaranteed to stay alive, in fact it can be deleted at any point. Also: other than GPIO drivers themselves, nobody else has any business accessing gpio_chip structs. Provide a new gpio_device_find() function that returns a real reference to the opaque gpio_device structure that is guaranteed to stay alive for as long as there are active users of it. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions