From 8160f052d40d0f09bacc89e074eb37bc40270362 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 11 Aug 2022 22:34:20 -0500 Subject: [PATCH] drivers: regulator: Update Kconfig * Utilize DT_HAS__ENABLED for devicetree based drivers Signed-off-by: Kumar Gala --- drivers/regulator/Kconfig.fixed | 5 ++--- drivers/regulator/Kconfig.pmic | 6 ++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/regulator/Kconfig.fixed b/drivers/regulator/Kconfig.fixed index 8bf82aacd1e..1cfbcb1ec1a 100644 --- a/drivers/regulator/Kconfig.fixed +++ b/drivers/regulator/Kconfig.fixed @@ -1,11 +1,10 @@ # Copyright 2020 Peter Bigot Consulting, LLC # SPDX-License-Identifier: Apache-2.0 -DT_COMPAT_REGULATOR_FIXED := regulator-fixed - config REGULATOR_FIXED bool "GPIO-controlled regulators" - default $(dt_compat_enabled,$(DT_COMPAT_REGULATOR_FIXED)) + default y + depends on DT_HAS_REGULATOR_FIXED_ENABLED depends on GPIO help Enable the driver for GPIO-controlled regulators diff --git a/drivers/regulator/Kconfig.pmic b/drivers/regulator/Kconfig.pmic index 69dd44e6a5a..03f266bb798 100644 --- a/drivers/regulator/Kconfig.pmic +++ b/drivers/regulator/Kconfig.pmic @@ -1,12 +1,10 @@ # Copyright (c) 2021, NXP # SPDX -License-Identifier: Apache-2.0 -DT_COMPAT_PMIC_REG := regulator-pmic - config REGULATOR_PMIC bool "PMIC Regulator Driver" - depends on $(dt_compat_enabled,$(DT_COMPAT_PMIC_REG)) - default $(dt_compat_enabled,$(DT_COMPAT_PMIC_REG)) + default y + depends on DT_HAS_REGULATOR_PMIC_ENABLED select I2C help Enable the pmic regulator driver