bindings: rust: provide LineRequest::chip_name()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 20 Jul 2023 14:47:47 +0000 (16:47 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Sat, 22 Jul 2023 12:29:04 +0000 (14:29 +0200)
commitd12ce74a91037471126dc50aa0b365f5753b0b17
treeb41e357c75e94b8cc36848de4df725546b4101a1
parenteb9816ebe0e0961379a6d271ed7f5203048c7bdf
bindings: rust: provide LineRequest::chip_name()

Provide a wrapper around gpiod_line_request_get_chip_name() for Rust
bindings and add a test-case.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Erik Schilling <erik.schilling@linaro.org>
Reviewed-by: Kent Gibson <warthog618@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
bindings/rust/libgpiod/src/line_request.rs
bindings/rust/libgpiod/tests/line_request.rs