summaryrefslogtreecommitdiff
path: root/drivers/pwm/Kconfig
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2020-02-10 22:35:18 +0100
committerThierry Reding <thierry.reding@gmail.com>2020-03-30 16:55:26 +0200
commit3ad1f3a33286dc67d595f6fab3a3a9e583bc738a (patch)
treee0cbc0017e20028ccb090e9f68ced37aaa2f8655 /drivers/pwm/Kconfig
parent2cb5cd90f4cd3f819178bb47f3d1ef86ce612db7 (diff)
downloadlwn-3ad1f3a33286dc67d595f6fab3a3a9e583bc738a.tar.gz
lwn-3ad1f3a33286dc67d595f6fab3a3a9e583bc738a.zip
pwm: Implement some checks for lowlevel drivers
There are some expectations which the callbacks provided by lowlevel drivers should fulfill. Implement checks that help driver authors to get these semantics right. As these have some overhead the checks can be disabled using a Kconfig setting. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/Kconfig')
-rw-r--r--drivers/pwm/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 30190beeb6e9..e21834f44a29 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -33,6 +33,15 @@ config PWM_SYSFS
bool
default y if SYSFS
+config PWM_DEBUG
+ bool "PWM lowlevel drivers additional checks and debug messages"
+ depends on DEBUG_KERNEL
+ help
+ This option enables some additional checks to help lowlevel driver
+ authors to get their callbacks implemented correctly.
+ It is expected to introduce some runtime overhead and diagnostic
+ output to the kernel log, so only enable while working on a driver.
+
config PWM_AB8500
tristate "AB8500 PWM support"
depends on AB8500_CORE && ARCH_U8500