USB: serial: cp210x: use tcflag_t to fix incompatible pointer type
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 21 Nov 2016 12:19:31 +0000 (13:19 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 21 Nov 2016 14:19:01 +0000 (15:19 +0100)
commit009615ab7fd4e43b82a38e4e6adc5e23c1ee567f
tree75022d392e155c6caf1156bd1c33bd1524ba00bc
parent2fbd69c4e33360383907cf0abb245440e62a6f37
USB: serial: cp210x: use tcflag_t to fix incompatible pointer type

On sparc32, tcflag_t is unsigned long, unlike all other architectures:

    drivers/usb/serial/cp210x.c: In function 'cp210x_get_termios':
    drivers/usb/serial/cp210x.c:717:3: warning: passing argument 2 of 'cp210x_get_termios_port' from incompatible pointer type
       cp210x_get_termios_port(tty->driver_data,
       ^
    drivers/usb/serial/cp210x.c:35:13: note: expected 'unsigned int *' but argument is of type 'tcflag_t *'
     static void cp210x_get_termios_port(struct usb_serial_port *port,
 ^

Consistently use tcflag_t to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c