cp210x.c (6ff58ae17fd9523246a260434133ed9ab7f56df2) | cp210x.c (f4bbae27b32ea0ffb9e25931b9769600e8d8a664) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Silicon Laboratories CP210x USB to RS232 serial adaptor driver 4 * 5 * Copyright (C) 2005 Craig Shelley (craig@microtron.org.uk) 6 * Copyright (C) 2010-2021 Johan Hovold (johan@kernel.org) 7 * 8 * Support to set flow control line levels using TIOCMGET and TIOCMSET --- 1423 unchanged lines hidden (view full) --- 1432 dev_dbg(&port->dev, "%s - control = 0x%02x\n", __func__, control); 1433 1434 return result; 1435} 1436 1437static int cp210x_break_ctl(struct tty_struct *tty, int break_state) 1438{ 1439 struct usb_serial_port *port = tty->driver_data; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Silicon Laboratories CP210x USB to RS232 serial adaptor driver 4 * 5 * Copyright (C) 2005 Craig Shelley (craig@microtron.org.uk) 6 * Copyright (C) 2010-2021 Johan Hovold (johan@kernel.org) 7 * 8 * Support to set flow control line levels using TIOCMGET and TIOCMSET --- 1423 unchanged lines hidden (view full) --- 1432 dev_dbg(&port->dev, "%s - control = 0x%02x\n", __func__, control); 1433 1434 return result; 1435} 1436 1437static int cp210x_break_ctl(struct tty_struct *tty, int break_state) 1438{ 1439 struct usb_serial_port *port = tty->driver_data; |
1440 struct cp210x_serial_private *priv = usb_get_serial_data(port->serial); |
|
1440 u16 state; 1441 | 1441 u16 state; 1442 |
1443 if (priv->partnum == CP210X_PARTNUM_CP2105) { 1444 if (cp210x_interface_num(port->serial) == 1) 1445 return -ENOTTY; 1446 } 1447 |
|
1442 if (break_state == 0) 1443 state = BREAK_OFF; 1444 else 1445 state = BREAK_ON; 1446 1447 dev_dbg(&port->dev, "%s - turning break %s\n", __func__, 1448 state == BREAK_OFF ? "off" : "on"); 1449 --- 739 unchanged lines hidden --- | 1448 if (break_state == 0) 1449 state = BREAK_OFF; 1450 else 1451 state = BREAK_ON; 1452 1453 dev_dbg(&port->dev, "%s - turning break %s\n", __func__, 1454 state == BREAK_OFF ? "off" : "on"); 1455 --- 739 unchanged lines hidden --- |