summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorQuentin Schulz <[email protected]>2025-12-12 19:13:19 +0100
committerPeng Fan <[email protected]>2025-12-24 12:06:45 +0800
commit2c01c4b72064e8832ab1076c0384ff52aab8cd7d (patch)
tree03e7329a2157beefac3eac3e10d48b8437fb84be /drivers
parenta56270310af18db96fd45a2d59a0dc1ec2e26328 (diff)
power: regulator: fix dependency for REGULATOR_PWM
The PWM regulator driver is a uclass driver, thus requiring DM_PWM to be enabled to be actually usable (and with the appropriate PWM controller driver enabled as well, but that we cannot enforce easily), so let's add this missing dependency. Fixes: 1a01695615f9 ("power: regulator: add pwm regulator") Signed-off-by: Quentin Schulz <[email protected]> Reviewed-by: Udit Kumar <[email protected]> Reviewed-by: Anshul Dalal <[email protected]> Reviewed-by: Kory Maincent <[email protected]> Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/regulator/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/Kconfig b/drivers/power/regulator/Kconfig
index 1875e61967c..d6b451ca407 100644
--- a/drivers/power/regulator/Kconfig
+++ b/drivers/power/regulator/Kconfig
@@ -133,7 +133,7 @@ config DM_REGULATOR_PFUZE100
config REGULATOR_PWM
bool "Enable driver for PWM regulators"
- depends on DM_REGULATOR
+ depends on DM_REGULATOR && DM_PWM
---help---
Enable support for the PWM regulator functions which voltage are
controlled by PWM duty ratio. Some of Rockchip board using this kind