You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] tty: switch to ktermios
This is the grungy swap all the occurrences in the right places patch that goes with the updates. At this point we have the same functionality as before (except that sgttyb() returns speeds not zero) and are ready to begin turning new stuff on providing nobody reports lots of bugs If you are a tty driver author converting an out of tree driver the only impact should be termios->ktermios name changes for the speed/property setting functions from your upper layers. If you are implementing your own TCGETS function before then your driver was broken already and its about to get a whole lot more painful for you so please fix it 8) Also fill in c_ispeed/ospeed on init for most devices, although the current code will do this for you anyway but I'd like eventually to lose that extra paranoia [akpm@osdl.org: bluetooth fix] [mp3@de.ibm.com: sclp fix] [mp3@de.ibm.com: warning fix for tty3270] [hugh@veritas.com: fix tty_ioctl powerpc build] [jdike@addtoit.com: uml: fix ->set_termios declaration] Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Martin Peschke <mp3@de.ibm.com> Acked-by: Peter Oberparleiter <oberpar@de.ibm.com> Cc: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -156,7 +156,7 @@ cleanup:
|
||||
}
|
||||
|
||||
static void ark3116_set_termios(struct usb_serial_port *port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
struct usb_serial *serial = port->serial;
|
||||
struct ark3116_private *priv = usb_get_serial_port_data(port);
|
||||
@@ -326,7 +326,7 @@ static void ark3116_set_termios(struct usb_serial_port *port,
|
||||
|
||||
static int ark3116_open(struct usb_serial_port *port, struct file *filp)
|
||||
{
|
||||
struct termios tmp_termios;
|
||||
struct ktermios tmp_termios;
|
||||
struct usb_serial *serial = port->serial;
|
||||
char *buf;
|
||||
int result = 0;
|
||||
|
||||
@@ -92,7 +92,7 @@ static void belkin_sa_shutdown (struct usb_serial *serial);
|
||||
static int belkin_sa_open (struct usb_serial_port *port, struct file *filp);
|
||||
static void belkin_sa_close (struct usb_serial_port *port, struct file *filp);
|
||||
static void belkin_sa_read_int_callback (struct urb *urb);
|
||||
static void belkin_sa_set_termios (struct usb_serial_port *port, struct termios * old);
|
||||
static void belkin_sa_set_termios (struct usb_serial_port *port, struct ktermios * old);
|
||||
static int belkin_sa_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg);
|
||||
static void belkin_sa_break_ctl (struct usb_serial_port *port, int break_state );
|
||||
static int belkin_sa_tiocmget (struct usb_serial_port *port, struct file *file);
|
||||
@@ -333,7 +333,7 @@ exit:
|
||||
__FUNCTION__, retval);
|
||||
}
|
||||
|
||||
static void belkin_sa_set_termios (struct usb_serial_port *port, struct termios *old_termios)
|
||||
static void belkin_sa_set_termios (struct usb_serial_port *port, struct ktermios *old_termios)
|
||||
{
|
||||
struct usb_serial *serial = port->serial;
|
||||
struct belkin_sa_private *priv = usb_get_serial_port_data(port);
|
||||
|
||||
@@ -65,7 +65,7 @@ static int usb_console_setup(struct console *co, char *options)
|
||||
struct usb_serial_port *port;
|
||||
int retval = 0;
|
||||
struct tty_struct *tty;
|
||||
struct termios *termios;
|
||||
struct ktermios *termios;
|
||||
|
||||
dbg ("%s", __FUNCTION__);
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ static int cp2101_open(struct usb_serial_port*, struct file*);
|
||||
static void cp2101_cleanup(struct usb_serial_port*);
|
||||
static void cp2101_close(struct usb_serial_port*, struct file*);
|
||||
static void cp2101_get_termios(struct usb_serial_port*);
|
||||
static void cp2101_set_termios(struct usb_serial_port*, struct termios*);
|
||||
static void cp2101_set_termios(struct usb_serial_port*, struct ktermios*);
|
||||
static int cp2101_tiocmget (struct usb_serial_port *, struct file *);
|
||||
static int cp2101_tiocmset (struct usb_serial_port *, struct file *,
|
||||
unsigned int, unsigned int);
|
||||
@@ -506,7 +506,7 @@ static void cp2101_get_termios (struct usb_serial_port *port)
|
||||
}
|
||||
|
||||
static void cp2101_set_termios (struct usb_serial_port *port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
unsigned int cflag, old_cflag=0;
|
||||
int baud=0, bits;
|
||||
|
||||
@@ -143,7 +143,7 @@ struct cypress_private {
|
||||
wait_queue_head_t delta_msr_wait; /* used for TIOCMIWAIT */
|
||||
char prev_status, diff_status; /* used for TIOCMIWAIT */
|
||||
/* we pass a pointer to this as the arguement sent to cypress_set_termios old_termios */
|
||||
struct termios tmp_termios; /* stores the old termios settings */
|
||||
struct ktermios tmp_termios; /* stores the old termios settings */
|
||||
};
|
||||
|
||||
/* write buffer structure */
|
||||
@@ -165,7 +165,7 @@ static int cypress_write (struct usb_serial_port *port, const unsigned char *b
|
||||
static void cypress_send (struct usb_serial_port *port);
|
||||
static int cypress_write_room (struct usb_serial_port *port);
|
||||
static int cypress_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg);
|
||||
static void cypress_set_termios (struct usb_serial_port *port, struct termios * old);
|
||||
static void cypress_set_termios (struct usb_serial_port *port, struct ktermios * old);
|
||||
static int cypress_tiocmget (struct usb_serial_port *port, struct file *file);
|
||||
static int cypress_tiocmset (struct usb_serial_port *port, struct file *file, unsigned int set, unsigned int clear);
|
||||
static int cypress_chars_in_buffer (struct usb_serial_port *port);
|
||||
@@ -949,13 +949,13 @@ static int cypress_ioctl (struct usb_serial_port *port, struct file * file, unsi
|
||||
|
||||
switch (cmd) {
|
||||
case TIOCGSERIAL:
|
||||
if (copy_to_user((void __user *)arg, port->tty->termios, sizeof(struct termios))) {
|
||||
if (copy_to_user((void __user *)arg, port->tty->termios, sizeof(struct ktermios))) {
|
||||
return -EFAULT;
|
||||
}
|
||||
return (0);
|
||||
break;
|
||||
case TIOCSSERIAL:
|
||||
if (copy_from_user(port->tty->termios, (void __user *)arg, sizeof(struct termios))) {
|
||||
if (copy_from_user(port->tty->termios, (void __user *)arg, sizeof(struct ktermios))) {
|
||||
return -EFAULT;
|
||||
}
|
||||
/* here we need to call cypress_set_termios to invoke the new settings */
|
||||
@@ -1019,7 +1019,7 @@ static int cypress_ioctl (struct usb_serial_port *port, struct file * file, unsi
|
||||
|
||||
|
||||
static void cypress_set_termios (struct usb_serial_port *port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
struct cypress_private *priv = usb_get_serial_port_data(port);
|
||||
struct tty_struct *tty;
|
||||
|
||||
@@ -449,7 +449,7 @@ static int digi_transmit_idle( struct usb_serial_port *port,
|
||||
static void digi_rx_throttle (struct usb_serial_port *port);
|
||||
static void digi_rx_unthrottle (struct usb_serial_port *port);
|
||||
static void digi_set_termios( struct usb_serial_port *port,
|
||||
struct termios *old_termios );
|
||||
struct ktermios *old_termios );
|
||||
static void digi_break_ctl( struct usb_serial_port *port, int break_state );
|
||||
static int digi_ioctl( struct usb_serial_port *port, struct file *file,
|
||||
unsigned int cmd, unsigned long arg );
|
||||
@@ -976,7 +976,7 @@ dbg( "digi_rx_unthrottle: TOP: port=%d", priv->dp_port_num );
|
||||
|
||||
|
||||
static void digi_set_termios( struct usb_serial_port *port,
|
||||
struct termios *old_termios )
|
||||
struct ktermios *old_termios )
|
||||
{
|
||||
|
||||
struct digi_port *priv = usb_get_serial_port_data(port);
|
||||
@@ -1463,7 +1463,7 @@ static int digi_open( struct usb_serial_port *port, struct file *filp )
|
||||
int ret;
|
||||
unsigned char buf[32];
|
||||
struct digi_port *priv = usb_get_serial_port_data(port);
|
||||
struct termios not_termios;
|
||||
struct ktermios not_termios;
|
||||
unsigned long flags = 0;
|
||||
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ static int empeg_ioctl (struct usb_serial_port *port,
|
||||
struct file * file,
|
||||
unsigned int cmd,
|
||||
unsigned long arg);
|
||||
static void empeg_set_termios (struct usb_serial_port *port, struct termios *old_termios);
|
||||
static void empeg_set_termios (struct usb_serial_port *port, struct ktermios *old_termios);
|
||||
static void empeg_write_bulk_callback (struct urb *urb);
|
||||
static void empeg_read_bulk_callback (struct urb *urb);
|
||||
|
||||
@@ -442,7 +442,7 @@ static int empeg_ioctl (struct usb_serial_port *port, struct file * file, unsign
|
||||
}
|
||||
|
||||
|
||||
static void empeg_set_termios (struct usb_serial_port *port, struct termios *old_termios)
|
||||
static void empeg_set_termios (struct usb_serial_port *port, struct ktermios *old_termios)
|
||||
{
|
||||
|
||||
dbg("%s - port %d", __FUNCTION__, port->number);
|
||||
|
||||
@@ -595,7 +595,7 @@ static int ftdi_chars_in_buffer (struct usb_serial_port *port);
|
||||
static void ftdi_write_bulk_callback (struct urb *urb);
|
||||
static void ftdi_read_bulk_callback (struct urb *urb);
|
||||
static void ftdi_process_read (struct work_struct *work);
|
||||
static void ftdi_set_termios (struct usb_serial_port *port, struct termios * old);
|
||||
static void ftdi_set_termios (struct usb_serial_port *port, struct ktermios * old);
|
||||
static int ftdi_tiocmget (struct usb_serial_port *port, struct file *file);
|
||||
static int ftdi_tiocmset (struct usb_serial_port *port, struct file * file, unsigned int set, unsigned int clear);
|
||||
static int ftdi_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg);
|
||||
@@ -1880,7 +1880,7 @@ static void ftdi_break_ctl( struct usb_serial_port *port, int break_state )
|
||||
* WARNING: set_termios calls this with old_termios in kernel space
|
||||
*/
|
||||
|
||||
static void ftdi_set_termios (struct usb_serial_port *port, struct termios *old_termios)
|
||||
static void ftdi_set_termios (struct usb_serial_port *port, struct ktermios *old_termios)
|
||||
{ /* ftdi_termios */
|
||||
struct usb_device *dev = port->serial->dev;
|
||||
unsigned int cflag = port->tty->termios->c_cflag;
|
||||
|
||||
@@ -229,7 +229,7 @@ static int edge_write_room (struct usb_serial_port *port);
|
||||
static int edge_chars_in_buffer (struct usb_serial_port *port);
|
||||
static void edge_throttle (struct usb_serial_port *port);
|
||||
static void edge_unthrottle (struct usb_serial_port *port);
|
||||
static void edge_set_termios (struct usb_serial_port *port, struct termios *old_termios);
|
||||
static void edge_set_termios (struct usb_serial_port *port, struct ktermios *old_termios);
|
||||
static int edge_ioctl (struct usb_serial_port *port, struct file *file, unsigned int cmd, unsigned long arg);
|
||||
static void edge_break (struct usb_serial_port *port, int break_state);
|
||||
static int edge_tiocmget (struct usb_serial_port *port, struct file *file);
|
||||
@@ -257,7 +257,7 @@ static void handle_new_lsr (struct edgeport_port *edge_port, __u8 lsrData, __u8
|
||||
static int send_iosp_ext_cmd (struct edgeport_port *edge_port, __u8 command, __u8 param);
|
||||
static int calc_baud_rate_divisor (int baud_rate, int *divisor);
|
||||
static int send_cmd_write_baud_rate (struct edgeport_port *edge_port, int baudRate);
|
||||
static void change_port_settings (struct edgeport_port *edge_port, struct termios *old_termios);
|
||||
static void change_port_settings (struct edgeport_port *edge_port, struct ktermios *old_termios);
|
||||
static int send_cmd_write_uart_register (struct edgeport_port *edge_port, __u8 regNum, __u8 regValue);
|
||||
static int write_cmd_usb (struct edgeport_port *edge_port, unsigned char *buffer, int writeLength);
|
||||
static void send_more_port_data (struct edgeport_serial *edge_serial, struct edgeport_port *edge_port);
|
||||
@@ -1431,7 +1431,7 @@ static void edge_unthrottle (struct usb_serial_port *port)
|
||||
* SerialSetTermios
|
||||
* this function is called by the tty driver when it wants to change the termios structure
|
||||
*****************************************************************************/
|
||||
static void edge_set_termios (struct usb_serial_port *port, struct termios *old_termios)
|
||||
static void edge_set_termios (struct usb_serial_port *port, struct ktermios *old_termios)
|
||||
{
|
||||
struct edgeport_port *edge_port = usb_get_serial_port_data(port);
|
||||
struct tty_struct *tty = port->tty;
|
||||
@@ -2412,7 +2412,7 @@ static int send_cmd_write_uart_register (struct edgeport_port *edge_port, __u8 r
|
||||
#ifndef CMSPAR
|
||||
#define CMSPAR 0
|
||||
#endif
|
||||
static void change_port_settings (struct edgeport_port *edge_port, struct termios *old_termios)
|
||||
static void change_port_settings (struct edgeport_port *edge_port, struct ktermios *old_termios)
|
||||
{
|
||||
struct tty_struct *tty;
|
||||
int baud;
|
||||
|
||||
@@ -238,7 +238,7 @@ static void edge_tty_recv(struct device *dev, struct tty_struct *tty, unsigned c
|
||||
static void stop_read(struct edgeport_port *edge_port);
|
||||
static int restart_read(struct edgeport_port *edge_port);
|
||||
|
||||
static void edge_set_termios (struct usb_serial_port *port, struct termios *old_termios);
|
||||
static void edge_set_termios (struct usb_serial_port *port, struct ktermios *old_termios);
|
||||
static void edge_send(struct usb_serial_port *port);
|
||||
|
||||
/* circular buffer */
|
||||
@@ -2361,7 +2361,7 @@ static int restart_read(struct edgeport_port *edge_port)
|
||||
return status;
|
||||
}
|
||||
|
||||
static void change_port_settings (struct edgeport_port *edge_port, struct termios *old_termios)
|
||||
static void change_port_settings (struct edgeport_port *edge_port, struct ktermios *old_termios)
|
||||
{
|
||||
struct ump_uart_config *config;
|
||||
struct tty_struct *tty;
|
||||
@@ -2512,7 +2512,7 @@ static void change_port_settings (struct edgeport_port *edge_port, struct termio
|
||||
return;
|
||||
}
|
||||
|
||||
static void edge_set_termios (struct usb_serial_port *port, struct termios *old_termios)
|
||||
static void edge_set_termios (struct usb_serial_port *port, struct ktermios *old_termios)
|
||||
{
|
||||
struct edgeport_port *edge_port = usb_get_serial_port_data(port);
|
||||
struct tty_struct *tty = port->tty;
|
||||
|
||||
@@ -107,7 +107,7 @@ static void ir_close (struct usb_serial_port *port, struct file *filep);
|
||||
static int ir_write (struct usb_serial_port *port, const unsigned char *buf, int count);
|
||||
static void ir_write_bulk_callback (struct urb *urb);
|
||||
static void ir_read_bulk_callback (struct urb *urb);
|
||||
static void ir_set_termios (struct usb_serial_port *port, struct termios *old_termios);
|
||||
static void ir_set_termios (struct usb_serial_port *port, struct ktermios *old_termios);
|
||||
|
||||
static u8 ir_baud = 0;
|
||||
static u8 ir_xbof = 0;
|
||||
@@ -497,7 +497,7 @@ static void ir_read_bulk_callback (struct urb *urb)
|
||||
return;
|
||||
}
|
||||
|
||||
static void ir_set_termios (struct usb_serial_port *port, struct termios *old_termios)
|
||||
static void ir_set_termios (struct usb_serial_port *port, struct ktermios *old_termios)
|
||||
{
|
||||
unsigned char *transfer_buffer;
|
||||
unsigned int cflag;
|
||||
|
||||
@@ -264,7 +264,7 @@ static void keyspan_break_ctl (struct usb_serial_port *port, int break_state)
|
||||
|
||||
|
||||
static void keyspan_set_termios (struct usb_serial_port *port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
int baud_rate, device_port;
|
||||
struct keyspan_port_private *p_priv;
|
||||
|
||||
@@ -59,7 +59,7 @@ static int keyspan_ioctl (struct usb_serial_port *port,
|
||||
unsigned int cmd,
|
||||
unsigned long arg);
|
||||
static void keyspan_set_termios (struct usb_serial_port *port,
|
||||
struct termios *old);
|
||||
struct ktermios *old);
|
||||
static void keyspan_break_ctl (struct usb_serial_port *port,
|
||||
int break_state);
|
||||
static int keyspan_tiocmget (struct usb_serial_port *port,
|
||||
|
||||
@@ -365,7 +365,7 @@ static void keyspan_pda_break_ctl (struct usb_serial_port *port, int break_state
|
||||
|
||||
|
||||
static void keyspan_pda_set_termios (struct usb_serial_port *port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
struct usb_serial *serial = port->serial;
|
||||
unsigned int cflag = port->tty->termios->c_cflag;
|
||||
|
||||
@@ -86,7 +86,7 @@ static int klsi_105_write_room (struct usb_serial_port *port);
|
||||
|
||||
static void klsi_105_read_bulk_callback (struct urb *urb);
|
||||
static void klsi_105_set_termios (struct usb_serial_port *port,
|
||||
struct termios * old);
|
||||
struct ktermios *old);
|
||||
static int klsi_105_ioctl (struct usb_serial_port *port,
|
||||
struct file * file,
|
||||
unsigned int cmd,
|
||||
@@ -164,7 +164,7 @@ struct klsi_105_port_settings {
|
||||
#define URB_TRANSFER_BUFFER_SIZE 64
|
||||
struct klsi_105_private {
|
||||
struct klsi_105_port_settings cfg;
|
||||
struct termios termios;
|
||||
struct ktermios termios;
|
||||
unsigned long line_state; /* modem line settings */
|
||||
/* write pool */
|
||||
struct urb * write_urb_pool[NUM_URBS];
|
||||
@@ -688,7 +688,7 @@ static void klsi_105_read_bulk_callback (struct urb *urb)
|
||||
|
||||
|
||||
static void klsi_105_set_termios (struct usb_serial_port *port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
struct klsi_105_private *priv = usb_get_serial_port_data(port);
|
||||
unsigned int iflag = port->tty->termios->c_iflag;
|
||||
|
||||
@@ -136,7 +136,7 @@ struct kobil_private {
|
||||
int cur_pos; // index of the next char to send in buf
|
||||
__u16 device_type;
|
||||
int line_state;
|
||||
struct termios internal_termios;
|
||||
struct ktermios internal_termios;
|
||||
};
|
||||
|
||||
|
||||
@@ -624,11 +624,11 @@ static int kobil_ioctl(struct usb_serial_port *port, struct file *file,
|
||||
|
||||
switch (cmd) {
|
||||
case TCGETS: // 0x5401
|
||||
if (!access_ok(VERIFY_WRITE, user_arg, sizeof(struct termios))) {
|
||||
if (!access_ok(VERIFY_WRITE, user_arg, sizeof(struct ktermios))) {
|
||||
dbg("%s - port %d Error in access_ok", __FUNCTION__, port->number);
|
||||
return -EFAULT;
|
||||
}
|
||||
if (kernel_termios_to_user_termios((struct termios __user *)arg,
|
||||
if (kernel_termios_to_user_termios((struct ktermios __user *)arg,
|
||||
&priv->internal_termios))
|
||||
return -EFAULT;
|
||||
return 0;
|
||||
@@ -638,12 +638,12 @@ static int kobil_ioctl(struct usb_serial_port *port, struct file *file,
|
||||
dbg("%s - port %d Error: port->tty->termios is NULL", __FUNCTION__, port->number);
|
||||
return -ENOTTY;
|
||||
}
|
||||
if (!access_ok(VERIFY_READ, user_arg, sizeof(struct termios))) {
|
||||
if (!access_ok(VERIFY_READ, user_arg, sizeof(struct ktermios))) {
|
||||
dbg("%s - port %d Error in access_ok", __FUNCTION__, port->number);
|
||||
return -EFAULT;
|
||||
}
|
||||
if (user_termios_to_kernel_termios(&priv->internal_termios,
|
||||
(struct termios __user *)arg))
|
||||
(struct ktermios __user *)arg))
|
||||
return -EFAULT;
|
||||
|
||||
settings = kzalloc(50, GFP_KERNEL);
|
||||
|
||||
@@ -98,7 +98,7 @@ static void mct_u232_close (struct usb_serial_port *port,
|
||||
struct file *filp);
|
||||
static void mct_u232_read_int_callback (struct urb *urb);
|
||||
static void mct_u232_set_termios (struct usb_serial_port *port,
|
||||
struct termios * old);
|
||||
struct ktermios * old);
|
||||
static int mct_u232_ioctl (struct usb_serial_port *port,
|
||||
struct file * file,
|
||||
unsigned int cmd,
|
||||
@@ -556,7 +556,7 @@ exit:
|
||||
} /* mct_u232_read_int_callback */
|
||||
|
||||
static void mct_u232_set_termios (struct usb_serial_port *port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
struct usb_serial *serial = port->serial;
|
||||
struct mct_u232_private *priv = usb_get_serial_port_data(port);
|
||||
|
||||
@@ -1014,7 +1014,7 @@ static int send_cmd_write_baud_rate(struct moschip_port *mos7720_port,
|
||||
* the specified new settings.
|
||||
*/
|
||||
static void change_port_settings(struct moschip_port *mos7720_port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
struct usb_serial_port *port;
|
||||
struct usb_serial *serial;
|
||||
@@ -1203,7 +1203,7 @@ static void change_port_settings(struct moschip_port *mos7720_port,
|
||||
* termios structure.
|
||||
*/
|
||||
static void mos7720_set_termios(struct usb_serial_port *port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
int status;
|
||||
unsigned int cflag;
|
||||
|
||||
@@ -1931,7 +1931,7 @@ static int mos7840_send_cmd_write_baud_rate(struct moschip_port *mos7840_port,
|
||||
*****************************************************************************/
|
||||
|
||||
static void mos7840_change_port_settings(struct moschip_port *mos7840_port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
struct tty_struct *tty;
|
||||
int baud;
|
||||
@@ -2118,7 +2118,7 @@ static void mos7840_change_port_settings(struct moschip_port *mos7840_port,
|
||||
*****************************************************************************/
|
||||
|
||||
static void mos7840_set_termios(struct usb_serial_port *port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
int status;
|
||||
unsigned int cflag;
|
||||
|
||||
@@ -59,7 +59,7 @@ static int option_chars_in_buffer(struct usb_serial_port *port);
|
||||
static int option_ioctl(struct usb_serial_port *port, struct file *file,
|
||||
unsigned int cmd, unsigned long arg);
|
||||
static void option_set_termios(struct usb_serial_port *port,
|
||||
struct termios *old);
|
||||
struct ktermios *old);
|
||||
static void option_break_ctl(struct usb_serial_port *port, int break_state);
|
||||
static int option_tiocmget(struct usb_serial_port *port, struct file *file);
|
||||
static int option_tiocmset(struct usb_serial_port *port, struct file *file,
|
||||
@@ -230,7 +230,7 @@ static void option_break_ctl(struct usb_serial_port *port, int break_state)
|
||||
}
|
||||
|
||||
static void option_set_termios(struct usb_serial_port *port,
|
||||
struct termios *old_termios)
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
dbg("%s", __FUNCTION__);
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user