Skip to content

Commit 8bfc215

Browse files
ABOSTMcarlescufi
authored andcommitted
tests: drivers: gpio: gpio_basic_api: use static dev declaration
"dev" is already defined as a static variable, it should not be redefined locally Fix regression introduced by commit 2a8e3fe Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent b5f3df0 commit 8bfc215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/drivers/gpio/gpio_basic_api/src/test_gpio_port.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static int setup(void)
6969
int rc;
7070
gpio_port_value_t v1;
7171

72-
const struct device *dev = DEVICE_DT_GET(DEV);
72+
dev = DEVICE_DT_GET(DEV);
7373

7474
TC_PRINT("Validate device %s\n", dev->name);
7575
zassert_true(device_is_ready(dev), "GPIO dev is not ready");

0 commit comments

Comments
 (0)