diff options
author | Bartosz Golaszewski <[email protected]> | 2023-09-27 16:29:25 +0200 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2023-10-04 13:29:56 +0200 |
commit | 93548f8bbbbf5b62dbd37c8f61a037a06666787b (patch) | |
tree | c34338852cee00c40de2e10d8d1d41d306de374f /scripts/generate_rust_analyzer.py | |
parent | d62fcd9f1897d587f8f9db3f77ccae8797a44b5d (diff) |
gpiolib: provide gpio_device_get_desc()
Getting the GPIO descriptor directly from the gpio_chip struct is
dangerous as we don't take the reference to the underlying GPIO device.
In order to start working towards removing gpiochip_get_desc(), let's
provide a safer variant that works with an existing reference to struct
gpio_device.
Signed-off-by: Bartosz Golaszewski <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions