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>
This commit is contained in:
committed by
Thierry Reding
parent
2cb5cd90f4
commit
3ad1f3a332
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user