aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-09-12 18:40:04 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-10-13 00:50:48 -0400
commit88d50890b78f68ff047e4deee651ec4e256cefea (patch)
tree9ce53ff9e0f12dfa5cf39ae0a29b38b517fb2d76
parenta3096199226c2e4dc019f21c1bed6e96092d4a71 (diff)
dgnc: leave TIOC[GS]SOFTCAR to ldisc
no point duplicating that in tty_operations ->ioctl() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--drivers/staging/dgnc/dgnc_tty.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index 040af55e9e68..c01616f9e609 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -2080,31 +2080,7 @@ static int dgnc_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
2080 } 2080 }
2081 2081
2082 switch (cmd) { 2082 switch (cmd) {
2083 /* Here are all the standard ioctl's that we MUST implement */
2084 case TIOCGSOFTCAR:
2085
2086 spin_unlock_irqrestore(&ch->ch_lock, flags);
2087
2088 return put_user(C_CLOCAL(tty) ? 1 : 0,
2089 (unsigned long __user *)arg);
2090
2091 case TIOCSSOFTCAR:
2092
2093 spin_unlock_irqrestore(&ch->ch_lock, flags);
2094 rc = get_user(arg, (unsigned long __user *)arg);
2095 if (rc)
2096 return rc;
2097
2098 spin_lock_irqsave(&ch->ch_lock, flags);
2099 tty->termios.c_cflag = ((tty->termios.c_cflag & ~CLOCAL) |
2100 (arg ? CLOCAL : 0));
2101 ch_bd_ops->param(tty);
2102 spin_unlock_irqrestore(&ch->ch_lock, flags);
2103
2104 return 0;
2105
2106 /* Here are any additional ioctl's that we want to implement */ 2083 /* Here are any additional ioctl's that we want to implement */
2107
2108 case TCFLSH: 2084 case TCFLSH:
2109 /* 2085 /*
2110 * The linux tty driver doesn't have a flush 2086 * The linux tty driver doesn't have a flush