tests: fix the enum type in line-request tests
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 15 Feb 2023 12:46:30 +0000 (13:46 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 15 Feb 2023 12:46:30 +0000 (13:46 +0100)
Use the correct enumeration type for GPIO simulator line values.

Fixes: 67ffa262e393 ("tests: add line value enums for gpiosim GLib wrapper")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tests/tests-line-request.c

index 89402116182727f0fb06d24799f46c3350de3f94..d1f60fb461c577199f8a7d917478be6e3163582a 100644 (file)
@@ -243,7 +243,7 @@ GPIOD_TEST_CASE(set_all_values)
                GPIOD_LINE_VALUE_ACTIVE,
                GPIOD_LINE_VALUE_ACTIVE
        };
-       static const enum gpiod_line_value sim_values[] = {
+       static const GPIOSimValue sim_values[] = {
                G_GPIOSIM_VALUE_ACTIVE,
                G_GPIOSIM_VALUE_INACTIVE,
                G_GPIOSIM_VALUE_ACTIVE,