diff options
| author | 2023-09-27 16:29:25 +0200 | |
|---|---|---|
| committer | 2023-10-04 13:29:56 +0200 | |
| commit | 93548f8bbbbf5b62dbd37c8f61a037a06666787b (patch) | |
| tree | c34338852cee00c40de2e10d8d1d41d306de374f /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | gpiolib: provide gpio_device_find_by_label() (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 <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
