aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/kernel/ssh:/git@git.zx2c4.com/git:
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-09-27 16:29:25 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-10-04 13:29:56 +0200
commit93548f8bbbbf5b62dbd37c8f61a037a06666787b (patch)
treec34338852cee00c40de2e10d8d1d41d306de374f /rust/kernel/ssh:/git@git.zx2c4.com/git:
parentgpiolib: 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