From 8e8b68b1313fe32a0dcf461998200f4ce815b5ff Mon Sep 17 00:00:00 2001
From: Alin Jerpelea <alin.jerpelea@sony.com>
Date: Mon, 21 Feb 2022 07:56:47 +0000
Subject: [PATCH] drivers: analog: exclude BSD components from build

Unless ALLOW_BSD_COMPONENTS is enabled ADC/DAC support will not
be built

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
---
 drivers/analog/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/analog/Kconfig b/drivers/analog/Kconfig
index 6294f157e0..406d65a12c 100644
--- a/drivers/analog/Kconfig
+++ b/drivers/analog/Kconfig
@@ -67,6 +67,7 @@ config ADC_ADS125X
 	default n
 	select SPI
 	select SCHED_HPWORK
+	depends on ALLOW_BSD_COMPONENTS
 
 if ADC_ADS125X
 
@@ -207,6 +208,7 @@ if DAC
 config DAC_AD5410
 	bool "AD5410 support"
 	default n
+	depends on ALLOW_BSD_COMPONENTS
 	select SPI
 
 config DAC7571