From: Otavio Salvador <otavio@ossystems.com.br>
To: Jonathan Cameron <jic23@kernel.org>, linux-kernel@vger.kernel.org
Cc: Otavio Salvador <otavio@ossystems.com.br>,
Shawn Guo <shawn.guo@linaro.org>,
Jonathan Cameron <jic23@cam.ac.uk>,
linux-iio@vger.kernel.org
Subject: [PATCH v2 4/4] iio: add configuration option for debug support
Date: Tue, 16 Jul 2013 09:56:15 -0300 [thread overview]
Message-ID: <1373979376-31583-4-git-send-email-otavio@ossystems.com.br> (raw)
In-Reply-To: <1373979376-31583-1-git-send-email-otavio@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
Changes in v2:
- Rework Kconfig help (Lars-Peter Clausen)
drivers/iio/Kconfig | 7 +++++++
drivers/iio/Makefile | 2 ++
2 files changed, 9 insertions(+)
diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig
index 9af763a..e5d1cfc 100644
--- a/drivers/iio/Kconfig
+++ b/drivers/iio/Kconfig
@@ -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
diff --git a/drivers/iio/Makefile b/drivers/iio/Makefile
index 7a3866c..6e43e5b 100644
--- a/drivers/iio/Makefile
+++ b/drivers/iio/Makefile
@@ -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
--
1.8.3.2
next prev parent reply other threads:[~2013-07-16 12:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-16 12:56 [PATCH v2 1/4] ARM: dts: imx23-evk: enable USB PHY and controller Otavio Salvador
2013-07-16 12:56 ` [PATCH v2 2/4] ARM: dts: imx23-evk: enable Low Resolution ADC Otavio Salvador
2013-07-16 12:56 ` [PATCH v2 3/4] ARM: dts: imx23-olinuxino: " Otavio Salvador
2013-07-16 12:56 ` Otavio Salvador [this message]
2013-07-16 16:54 ` [PATCH v2 4/4] iio: add configuration option for debug support Jonathan Cameron
2013-07-17 3:50 ` [PATCH v2 1/4] ARM: dts: imx23-evk: enable USB PHY and controller Shawn Guo
2013-07-17 11:56 ` Otavio Salvador
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1373979376-31583-4-git-send-email-otavio@ossystems.com.br \
--to=otavio@ossystems.com.br \
--cc=jic23@cam.ac.uk \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shawn.guo@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®