diff options
author | Richard Weinberger <richard@nod.at> | 2012-06-04 14:53:13 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2012-07-28 11:47:58 -0400 |
commit | d003e982c1d2b8bf8418c415b0b87175d6a1bda2 (patch) | |
tree | 107c7045e49a5b8de8756a8d00e16582d4abee32 | |
parent | 6fc58845ad189f8ceebd68a2ff524bfcd689a75e (diff) |
um: remove line_ioctl()
line_ioctl() has no real function.
Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r-- | arch/um/drivers/line.c | 86 | ||||
-rw-r--r-- | arch/um/drivers/line.h | 2 | ||||
-rw-r--r-- | arch/um/drivers/ssl.c | 1 | ||||
-rw-r--r-- | arch/um/drivers/stdio_console.c | 1 |
4 files changed, 0 insertions, 90 deletions
diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index fb6e4ea09921..131129aec249 100644 --- a/arch/um/drivers/line.c +++ b/arch/um/drivers/line.c | |||
@@ -221,92 +221,6 @@ void line_set_termios(struct tty_struct *tty, struct ktermios * old) | |||
221 | /* nothing */ | 221 | /* nothing */ |
222 | } | 222 | } |
223 | 223 | ||
224 | static const struct { | ||
225 | int cmd; | ||
226 | char *level; | ||
227 | char *name; | ||
228 | } tty_ioctls[] = { | ||
229 | /* don't print these, they flood the log ... */ | ||
230 | { TCGETS, NULL, "TCGETS" }, | ||
231 | { TCSETS, NULL, "TCSETS" }, | ||
232 | { TCSETSW, NULL, "TCSETSW" }, | ||
233 | { TCFLSH, NULL, "TCFLSH" }, | ||
234 | { TCSBRK, NULL, "TCSBRK" }, | ||
235 | |||
236 | /* general tty stuff */ | ||
237 | { TCSETSF, KERN_DEBUG, "TCSETSF" }, | ||
238 | { TCGETA, KERN_DEBUG, "TCGETA" }, | ||
239 | { TIOCMGET, KERN_DEBUG, "TIOCMGET" }, | ||
240 | { TCSBRKP, KERN_DEBUG, "TCSBRKP" }, | ||
241 | { TIOCMSET, KERN_DEBUG, "TIOCMSET" }, | ||
242 | |||
243 | /* linux-specific ones */ | ||
244 | { TIOCLINUX, KERN_INFO, "TIOCLINUX" }, | ||
245 | { KDGKBMODE, KERN_INFO, "KDGKBMODE" }, | ||
246 | { KDGKBTYPE, KERN_INFO, "KDGKBTYPE" }, | ||
247 | { KDSIGACCEPT, KERN_INFO, "KDSIGACCEPT" }, | ||
248 | }; | ||
249 | |||
250 | int line_ioctl(struct tty_struct *tty, unsigned int cmd, | ||
251 | unsigned long arg) | ||
252 | { | ||
253 | int ret; | ||
254 | int i; | ||
255 | |||
256 | ret = 0; | ||
257 | switch(cmd) { | ||
258 | #ifdef TIOCGETP | ||
259 | case TIOCGETP: | ||
260 | case TIOCSETP: | ||
261 | case TIOCSETN: | ||
262 | #endif | ||
263 | #ifdef TIOCGETC | ||
264 | case TIOCGETC: | ||
265 | case TIOCSETC: | ||
266 | #endif | ||
267 | #ifdef TIOCGLTC | ||
268 | case TIOCGLTC: | ||
269 | case TIOCSLTC: | ||
270 | #endif | ||
271 | /* Note: these are out of date as we now have TCGETS2 etc but this | ||
272 | whole lot should probably go away */ | ||
273 | case TCGETS: | ||
274 | case TCSETSF: | ||
275 | case TCSETSW: | ||
276 | case TCSETS: | ||
277 | case TCGETA: | ||
278 | case TCSETAF: | ||
279 | case TCSETAW: | ||
280 | case TCSETA: | ||
281 | case TCXONC: | ||
282 | case TCFLSH: | ||
283 | case TIOCOUTQ: | ||
284 | case TIOCINQ: | ||
285 | case TIOCGLCKTRMIOS: | ||
286 | case TIOCSLCKTRMIOS: | ||
287 | case TIOCPKT: | ||
288 | case TIOCGSOFTCAR: | ||
289 | case TIOCSSOFTCAR: | ||
290 | return -ENOIOCTLCMD; | ||
291 | #if 0 | ||
292 | case TCwhatever: | ||
293 | /* do something */ | ||
294 | break; | ||
295 | #endif | ||
296 | default: | ||
297 | for (i = 0; i < ARRAY_SIZE(tty_ioctls); i++) | ||
298 | if (cmd == tty_ioctls[i].cmd) | ||
299 | break; | ||
300 | if (i == ARRAY_SIZE(tty_ioctls)) { | ||
301 | printk(KERN_ERR "%s: %s: unknown ioctl: 0x%x\n", | ||
302 | __func__, tty->name, cmd); | ||
303 | } | ||
304 | ret = -ENOIOCTLCMD; | ||
305 | break; | ||
306 | } | ||
307 | return ret; | ||
308 | } | ||
309 | |||
310 | void line_throttle(struct tty_struct *tty) | 224 | void line_throttle(struct tty_struct *tty) |
311 | { | 225 | { |
312 | struct line *line = tty->driver_data; | 226 | struct line *line = tty->driver_data; |
diff --git a/arch/um/drivers/line.h b/arch/um/drivers/line.h index 5b3d4fbdec18..6c3b252bf480 100644 --- a/arch/um/drivers/line.h +++ b/arch/um/drivers/line.h | |||
@@ -69,8 +69,6 @@ extern int line_chars_in_buffer(struct tty_struct *tty); | |||
69 | extern void line_flush_buffer(struct tty_struct *tty); | 69 | extern void line_flush_buffer(struct tty_struct *tty); |
70 | extern void line_flush_chars(struct tty_struct *tty); | 70 | extern void line_flush_chars(struct tty_struct *tty); |
71 | extern int line_write_room(struct tty_struct *tty); | 71 | extern int line_write_room(struct tty_struct *tty); |
72 | extern int line_ioctl(struct tty_struct *tty, unsigned int cmd, | ||
73 | unsigned long arg); | ||
74 | extern void line_throttle(struct tty_struct *tty); | 72 | extern void line_throttle(struct tty_struct *tty); |
75 | extern void line_unthrottle(struct tty_struct *tty); | 73 | extern void line_unthrottle(struct tty_struct *tty); |
76 | 74 | ||
diff --git a/arch/um/drivers/ssl.c b/arch/um/drivers/ssl.c index e09801a1327b..a39d53eaf57b 100644 --- a/arch/um/drivers/ssl.c +++ b/arch/um/drivers/ssl.c | |||
@@ -129,7 +129,6 @@ static const struct tty_operations ssl_ops = { | |||
129 | .flush_buffer = line_flush_buffer, | 129 | .flush_buffer = line_flush_buffer, |
130 | .flush_chars = line_flush_chars, | 130 | .flush_chars = line_flush_chars, |
131 | .set_termios = line_set_termios, | 131 | .set_termios = line_set_termios, |
132 | .ioctl = line_ioctl, | ||
133 | .throttle = line_throttle, | 132 | .throttle = line_throttle, |
134 | .unthrottle = line_unthrottle, | 133 | .unthrottle = line_unthrottle, |
135 | #if 0 | 134 | #if 0 |
diff --git a/arch/um/drivers/stdio_console.c b/arch/um/drivers/stdio_console.c index 7663541c372e..5cefdba2e3bf 100644 --- a/arch/um/drivers/stdio_console.c +++ b/arch/um/drivers/stdio_console.c | |||
@@ -112,7 +112,6 @@ static const struct tty_operations console_ops = { | |||
112 | .flush_buffer = line_flush_buffer, | 112 | .flush_buffer = line_flush_buffer, |
113 | .flush_chars = line_flush_chars, | 113 | .flush_chars = line_flush_chars, |
114 | .set_termios = line_set_termios, | 114 | .set_termios = line_set_termios, |
115 | .ioctl = line_ioctl, | ||
116 | .throttle = line_throttle, | 115 | .throttle = line_throttle, |
117 | .unthrottle = line_unthrottle, | 116 | .unthrottle = line_unthrottle, |
118 | }; | 117 | }; |