|
@@ -36,7 +36,7 @@ static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *);
|
|
|
static void cp210x_close(struct usb_serial_port *);
|
|
|
static void cp210x_get_termios(struct tty_struct *, struct usb_serial_port *);
|
|
|
static void cp210x_get_termios_port(struct usb_serial_port *port,
|
|
|
- unsigned int *cflagp, unsigned int *baudp);
|
|
|
+ tcflag_t *cflagp, unsigned int *baudp);
|
|
|
static void cp210x_change_speed(struct tty_struct *, struct usb_serial_port *,
|
|
|
struct ktermios *);
|
|
|
static void cp210x_set_termios(struct tty_struct *, struct usb_serial_port *,
|
|
@@ -877,7 +877,7 @@ static void cp210x_get_termios(struct tty_struct *tty,
|
|
|
&tty->termios.c_cflag, &baud);
|
|
|
tty_encode_baud_rate(tty, baud, baud);
|
|
|
} else {
|
|
|
- unsigned int cflag;
|
|
|
+ tcflag_t cflag;
|
|
|
cflag = 0;
|
|
|
cp210x_get_termios_port(port, &cflag, &baud);
|
|
|
}
|
|
@@ -888,10 +888,10 @@ static void cp210x_get_termios(struct tty_struct *tty,
|
|
|
* This is the heart of cp210x_get_termios which always uses a &usb_serial_port.
|
|
|
*/
|
|
|
static void cp210x_get_termios_port(struct usb_serial_port *port,
|
|
|
- unsigned int *cflagp, unsigned int *baudp)
|
|
|
+ tcflag_t *cflagp, unsigned int *baudp)
|
|
|
{
|
|
|
struct device *dev = &port->dev;
|
|
|
- unsigned int cflag;
|
|
|
+ tcflag_t cflag;
|
|
|
struct cp210x_flow_ctl flow_ctl;
|
|
|
u32 baud;
|
|
|
u16 bits;
|