[PATCH] leds: qcom-lpg: add missing PWM dependency

From: Johan Hovold
Date: Thu May 05 2022 - 04:07:04 EST


The Qualcomm LPG driver fails to probe unless PWM support is enabled so
add the missing Kconfig dependency.

Fixes: 24e2d05d1b68 ("leds: Add driver for Qualcomm LPG")
Signed-off-by: Johan Hovold <johan+linaro@xxxxxxxxxx>
---
drivers/leds/rgb/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/leds/rgb/Kconfig b/drivers/leds/rgb/Kconfig
index 5dd27ad80856..1e35433d061a 100644
--- a/drivers/leds/rgb/Kconfig
+++ b/drivers/leds/rgb/Kconfig
@@ -5,6 +5,7 @@ if LEDS_CLASS_MULTICOLOR
config LEDS_QCOM_LPG
tristate "LED support for Qualcomm LPG"
depends on OF
+ depends on PWM
depends on SPMI
help
This option enables support for the Light Pulse Generator found in a
--
2.35.1