ch341.c (66b0835e2bb3d345f060a47bb8c8f883bd25ec2b) | ch341.c (60b33c133ca0b7c0b6072c87234b63fee6e80558) |
---|---|
1/* 2 * Copyright 2007, Frank A Kingswood <frank@kingswood-consulting.co.uk> 3 * Copyright 2007, Werner Cornelius <werner@cornelius-consult.de> 4 * Copyright 2009, Boris Hajduk <boris@hajduk.org> 5 * 6 * ch341.c implements a serial port driver for the Winchiphead CH341. 7 * 8 * The CH341 device can be used to implement an RS232 asynchronous --- 558 unchanged lines hidden (view full) --- 567 default: 568 dbg("%s not supported = 0x%04x", __func__, cmd); 569 break; 570 } 571 572 return -ENOIOCTLCMD; 573} 574 | 1/* 2 * Copyright 2007, Frank A Kingswood <frank@kingswood-consulting.co.uk> 3 * Copyright 2007, Werner Cornelius <werner@cornelius-consult.de> 4 * Copyright 2009, Boris Hajduk <boris@hajduk.org> 5 * 6 * ch341.c implements a serial port driver for the Winchiphead CH341. 7 * 8 * The CH341 device can be used to implement an RS232 asynchronous --- 558 unchanged lines hidden (view full) --- 567 default: 568 dbg("%s not supported = 0x%04x", __func__, cmd); 569 break; 570 } 571 572 return -ENOIOCTLCMD; 573} 574 |
575static int ch341_tiocmget(struct tty_struct *tty, struct file *file) | 575static int ch341_tiocmget(struct tty_struct *tty) |
576{ 577 struct usb_serial_port *port = tty->driver_data; 578 struct ch341_private *priv = usb_get_serial_port_data(port); 579 unsigned long flags; 580 u8 mcr; 581 u8 status; 582 unsigned int result; 583 --- 97 unchanged lines hidden --- | 576{ 577 struct usb_serial_port *port = tty->driver_data; 578 struct ch341_private *priv = usb_get_serial_port_data(port); 579 unsigned long flags; 580 u8 mcr; 581 u8 status; 582 unsigned int result; 583 --- 97 unchanged lines hidden --- |