iio: add configuration option for debug support
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 16 Jul 2013 12:56:00 +0000 (13:56 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:40:36 +0000 (18:40 +0100)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/Kconfig
drivers/iio/Makefile

index 524380c9ae6cbb9d7fce512ea9a4b40635e8b41c..b682f6f5450174a40f5414802c86c2218d088dbf 100644 (file)
@@ -12,6 +12,13 @@ menuconfig IIO
 
 if IIO
 
+config IIO_DEBUG
+       boolean "Debug support for Industrial I/O"
+       depends on DEBUG_KERNEL
+       help
+         Say "yes" to enable debug messaging (like dev_dbg and pr_debug)
+         support in Industrial I/O subsystem and drivers.
+
 config IIO_BUFFER
        bool "Enable buffer support within IIO"
        help
index 7a3866c2d2a140813c4d7560a19703cf0b62d826..6e43e5b8d4ed2ba2f138cf0f49a979c0536460dd 100644 (file)
@@ -2,6 +2,8 @@
 # Makefile for the industrial I/O core.
 #
 
+ccflags-$(CONFIG_IIO_DEBUG) := -DDEBUG
+
 obj-$(CONFIG_IIO) += industrialio.o
 industrialio-y := industrialio-core.o industrialio-event.o inkern.o
 industrialio-$(CONFIG_IIO_BUFFER) += industrialio-buffer.o
This page took 0.024918 seconds and 5 git commands to generate.