From 3cc8183c52f0af6a7fcac894e4493b4b957055f2 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 31 Aug 2022 11:48:47 -0500 Subject: [PATCH] drivers: gpio: Cleanup Kconfig.test Use DT_HAS_VND_GPIO_ENABLED for GPIO_TEST similar to what we do for SPI_TEST, I2C_TEST, etc. Signed-off-by: Kumar Gala --- drivers/gpio/Kconfig.test | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpio/Kconfig.test b/drivers/gpio/Kconfig.test index 4df9728d47d..0f28b2ba93f 100644 --- a/drivers/gpio/Kconfig.test +++ b/drivers/gpio/Kconfig.test @@ -2,11 +2,8 @@ # Organisation (CSIRO) ABN 41 687 119 230. # SPDX-License-Identifier: Apache-2.0 -DT_COMPAT_VND_GPIO := vnd,gpio - # Hidden option for turning on the dummy driver for vnd,gpio devices # used in testing. config GPIO_TEST - def_bool $(dt_compat_enabled,$(DT_COMPAT_VND_GPIO)) - default y + def_bool DT_HAS_VND_GPIO_ENABLED depends on DT_HAS_VND_GPIO_ENABLED