Skip to content
Permalink
Browse files

samples: spi_flash: remove whitelisting

Instead of whitelisting, use filtering on configured SPI Flash device.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information...
nashif committed Jun 13, 2019
1 parent ab69044 commit db5aa49978d3cab61391ead867681fd61a8bdcaf
Showing with 2 additions and 2 deletions.
  1. +1 −1 samples/drivers/spi_flash/sample.yaml
  2. +1 −1 samples/drivers/spi_flash/src/main.c
@@ -2,8 +2,8 @@ sample:
name: SPI Flash Sample
tests:
sample.driver.spi_flash:
platform_whitelist: arduino_101
tags: spi flash
filter: DT_INST_0_JEDEC_SPI_NOR_BUS_NAME
harness: console
harness_config:
type: multi_line
@@ -23,7 +23,7 @@ void main(void)
printf("\nW25QXXDV SPI flash testing\n");
printf("==========================\n");

flash_dev = device_get_binding(CONFIG_SPI_FLASH_W25QXXDV_DRV_NAME);
flash_dev = device_get_binding(DT_INST_0_JEDEC_SPI_NOR_BUS_NAME);

if (!flash_dev) {
printf("SPI flash driver was not found!\n");

0 comments on commit db5aa49

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