Setting the open-drain or open-source flags for input doesn't make any
sense as these flags are only valid for output mode. This should
actually be checked in the kernel. For now fix the test case.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
TEST_ASSERT_FALSE(gpiod_line_is_open_drain(line));
TEST_ASSERT_FALSE(gpiod_line_is_open_source(line));
- config.request_type = GPIOD_LINE_REQUEST_DIRECTION_INPUT;
+ config.request_type = GPIOD_LINE_REQUEST_DIRECTION_OUTPUT;
config.consumer = TEST_CONSUMER;
config.flags = GPIOD_LINE_REQUEST_OPEN_DRAIN;