Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: serial: ch341: use fix-width types consistently

Use Linux fix-width types consistently and drop a related unnecessary
cast.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>

+3 -4
+3 -4
drivers/usb/serial/ch341.c
··· 660 660 661 661 static int ch341_break_ctl(struct tty_struct *tty, int break_state) 662 662 { 663 - const uint16_t ch341_break_reg = 664 - ((uint16_t) CH341_REG_LCR << 8) | CH341_REG_BREAK; 663 + const u16 ch341_break_reg = (CH341_REG_LCR << 8) | CH341_REG_BREAK; 665 664 struct usb_serial_port *port = tty->driver_data; 666 665 struct ch341_private *priv = usb_get_serial_port_data(port); 666 + u16 reg_contents; 667 + u8 break_reg[2]; 667 668 int r; 668 - uint16_t reg_contents; 669 - uint8_t break_reg[2]; 670 669 671 670 if (priv->quirks & CH341_QUIRK_SIMULATE_BREAK) 672 671 return ch341_simulate_break(tty, break_state);