Skip to content
Permalink
Browse files

boards: changing flash simulator device name alias

Changed alias used for flash simulator device name to match the real
one.

Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
  • Loading branch information...
kapi-no authored and carlescufi committed Apr 18, 2019
1 parent 1c60416 commit 129936e63dca86e7a31467ec0b687559a00cae20
Showing with 2 additions and 2 deletions.
  1. +1 −1 boards/x86/qemu_x86/dts_fixup.h
  2. +1 −1 tests/drivers/flash_simulator/src/main.c
@@ -7,6 +7,6 @@
#define DT_ETH_E1000_IRQ_PRIORITY DT_INTEL_E1000_FEBC0000_IRQ_0_PRIORITY
#define DT_ETH_E1000_IRQ_FLAGS DT_INTEL_E1000_FEBC0000_IRQ_0_SENSE

#define DT_SIM_FLASH_DEV_NAME DT_SIM_FLASH_SIM_FLASH_LABEL
#define DT_FLASH_DEV_NAME DT_SIM_FLASH_SIM_FLASH_LABEL

/* End of Board Level DTS fixup file */
@@ -58,7 +58,7 @@ static void test_int(void)
int rc;
off_t i;

flash_dev = device_get_binding(DT_SIM_FLASH_DEV_NAME);
flash_dev = device_get_binding(DT_FLASH_DEV_NAME);

zassert_true(flash_dev != NULL,
"Simulated flash driver was not found!");

0 comments on commit 129936e

Please sign in to comment.
You can’t perform that action at this time.