drivers: regulator: Update Kconfig
* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
parent
120df9aa1b
commit
8160f052d4
2 changed files with 4 additions and 7 deletions
|
@ -1,11 +1,10 @@
|
||||||
# Copyright 2020 Peter Bigot Consulting, LLC
|
# Copyright 2020 Peter Bigot Consulting, LLC
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_REGULATOR_FIXED := regulator-fixed
|
|
||||||
|
|
||||||
config REGULATOR_FIXED
|
config REGULATOR_FIXED
|
||||||
bool "GPIO-controlled regulators"
|
bool "GPIO-controlled regulators"
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_REGULATOR_FIXED))
|
default y
|
||||||
|
depends on DT_HAS_REGULATOR_FIXED_ENABLED
|
||||||
depends on GPIO
|
depends on GPIO
|
||||||
help
|
help
|
||||||
Enable the driver for GPIO-controlled regulators
|
Enable the driver for GPIO-controlled regulators
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
# Copyright (c) 2021, NXP
|
# Copyright (c) 2021, NXP
|
||||||
# SPDX -License-Identifier: Apache-2.0
|
# SPDX -License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_PMIC_REG := regulator-pmic
|
|
||||||
|
|
||||||
config REGULATOR_PMIC
|
config REGULATOR_PMIC
|
||||||
bool "PMIC Regulator Driver"
|
bool "PMIC Regulator Driver"
|
||||||
depends on $(dt_compat_enabled,$(DT_COMPAT_PMIC_REG))
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_PMIC_REG))
|
depends on DT_HAS_REGULATOR_PMIC_ENABLED
|
||||||
select I2C
|
select I2C
|
||||||
help
|
help
|
||||||
Enable the pmic regulator driver
|
Enable the pmic regulator driver
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue