summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-04-25 15:52:48 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-04-25 15:52:48 -0600
commitbbf5ee648636273bf194f5e9a8004ea45d4cb009 (patch)
tree369cb9cd255683303cb8df3bdf008a75393d5f23 /nuttx/arch/arm/src/lpc17xx
parent561c54964b2c99b1709fa79ee98aea31e7d7d449 (diff)
downloadpx4-nuttx-bbf5ee648636273bf194f5e9a8004ea45d4cb009.tar.gz
px4-nuttx-bbf5ee648636273bf194f5e9a8004ea45d4cb009.tar.bz2
px4-nuttx-bbf5ee648636273bf194f5e9a8004ea45d4cb009.zip
Useless TIOCSERGSTRUCT logic in most serial drivers is not compiled unless CONFIG_DEBUG and CONFIG_SERIAL_TIOCSERGSTRUCT are defined
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx')
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_serial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c b/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c
index b2da4839f..6bf519ac3 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c
@@ -1169,6 +1169,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
switch (cmd)
{
+#ifdef CONFIG_SERIAL_TIOCSERGSTRUCT
case TIOCSERGSTRUCT:
{
struct up_dev_s *user = (struct up_dev_s*)arg;
@@ -1182,6 +1183,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
}
}
break;
+#endif
case TIOCSBRK: /* BSD compatibility: Turn break on, unconditionally */
{