Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104672
b: refs/heads/master
c: b31f658
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jul 22, 2008
1 parent 8534cf0 commit 2e39a44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dee0a7ccaa0bcdeebb590879d68739cce4ff1b07
refs/heads/master: b31f658b0bb42b315c22ae2ef814e5fba36ac737
6 changes: 4 additions & 2 deletions trunk/drivers/usb/serial/kobil_sct.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,9 +640,11 @@ static void kobil_set_termios(struct tty_struct *tty,

priv = usb_get_serial_port_data(port);
if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID ||
priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID)
priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) {
/* This device doesn't support ioctl calls */
*tty->termios = *old;
return;
}

speed = tty_get_baud_rate(tty);
switch (speed) {
Expand Down Expand Up @@ -704,7 +706,7 @@ static int kobil_ioctl(struct tty_struct *tty, struct file *file,
if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID ||
priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID)
/* This device doesn't support ioctl calls */
return 0;
return -ENOIOCTLCMD;

switch (cmd) {
case TCFLSH:
Expand Down

0 comments on commit 2e39a44

Please sign in to comment.