Skip to content

Commit 5649ea6

Browse files
MaureenHelmnashif
authored andcommitted
tests: drivers: Fix dma channel link test
The Kconfig symbol CONFIG_DMA_0_NAME was recently removed. Update the dma channel link transfer test to get the device name from an application level Kconfig instead, similar to other dma driver tests. This fixes a CI compliance failure that checks for references to undefined Kconfig symbols. Tested on the mimxrt1050_evk board. Signed-off-by: Maureen Helm <[email protected]>
1 parent 930893f commit 5649ea6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2020 STMicroelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
mainmenu "DMA Link Transfer Test"
5+
6+
source "Kconfig.zephyr"
7+
8+
config DMA_LINK_TRANSFER_DRV_NAME
9+
string "DMA device name to use for test"
10+
default "DMA_0"

tests/drivers/dma/chan_link_transfer/src/test_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <drivers/dma.h>
2222
#include <ztest.h>
2323

24-
#define DMA_DEVICE_NAME CONFIG_DMA_0_NAME
24+
#define DMA_DEVICE_NAME CONFIG_DMA_LINK_TRANSFER_DRV_NAME
2525
#define TEST_DMA_CHANNEL_0 (0)
2626
#define TEST_DMA_CHANNEL_1 (1)
2727
#define RX_BUFF_SIZE (48)

0 commit comments

Comments
 (0)