bindings: rust: tests: set direction when reconfiguring lines
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 8 Jul 2024 09:48:58 +0000 (11:48 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 8 Jul 2024 18:53:40 +0000 (20:53 +0200)
commit2515fae57d88e0f4e916e66e358912b9f98914dd
treeb9e9df84f6343ffabdb401b1dc2fce36ed4259eb
parent3e224d885b1de54fe5510b9c5e7296260a1a4507
bindings: rust: tests: set direction when reconfiguring lines

Linux kernel commit b44039638741 ("gpiolib: cdev: Ignore reconfiguration
without direction") made the direction setting mandatory for line config
passed to the kernel when reconfiguring requested lines. Fix the Rust
test cases which don't do it and now fail due to the rest of the
settings being ignored.

Reviewed-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20240708094858.85015-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/rust/libgpiod/tests/line_request.rs