Module: xenomai-3 Branch: master Commit: 657763dd956f9fecc1518f55d9c263366e46c8dc URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=657763dd956f9fecc1518f55d9c263366e46c8dc
Author: Philippe Gerum <r...@xenomai.org> Date: Thu Jun 23 11:57:50 2016 +0200 drivers/gpio: add debugging option --- kernel/drivers/gpio/Kconfig | 6 +++++- kernel/drivers/gpio/gpio-core.c | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/kernel/drivers/gpio/Kconfig b/kernel/drivers/gpio/Kconfig index 8997963..618f23a 100644 --- a/kernel/drivers/gpio/Kconfig +++ b/kernel/drivers/gpio/Kconfig @@ -19,7 +19,11 @@ config XENO_DRIVERS_GPIO_MXC tristate "Support for MXC GPIOs" help - Suitable for the GPIO controller available with + Suitable for the GPIO controller available from Freescale/NXP's MXC architecture. +config XENO_DRIVERS_GPIO_DEBUG + depends on XENO_DRIVERS_GPIO + bool "Enable GPIO core debugging features" + endmenu diff --git a/kernel/drivers/gpio/gpio-core.c b/kernel/drivers/gpio/gpio-core.c index e8a7ba1..d9863d9 100644 --- a/kernel/drivers/gpio/gpio-core.c +++ b/kernel/drivers/gpio/gpio-core.c @@ -15,6 +15,9 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifdef CONFIG_XENO_DRIVERS_GPIO_DEBUG +#define DEBUG +#endif #include <linux/module.h> #include <linux/init.h> #include <linux/device.h> _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git