Commit 330e3c4c authored by Andreas Mohr's avatar Andreas Mohr Committed by Greg Kroah-Hartman

USB: ftdi_sio: correct spelling in implementation file

- correct spelling
- correct non-tabbed .tiocmget/.tiocmset entries
Signed-off-by: default avatarAndreas Mohr <andi@lisas.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0a2a3775
...@@ -812,7 +812,7 @@ static struct usb_serial_driver ftdi_sio_device = { ...@@ -812,7 +812,7 @@ static struct usb_serial_driver ftdi_sio_device = {
.name = "ftdi_sio", .name = "ftdi_sio",
}, },
.description = "FTDI USB Serial Device", .description = "FTDI USB Serial Device",
.usb_driver = &ftdi_driver , .usb_driver = &ftdi_driver,
.id_table = id_table_combined, .id_table = id_table_combined,
.num_ports = 1, .num_ports = 1,
.probe = ftdi_sio_probe, .probe = ftdi_sio_probe,
...@@ -828,8 +828,8 @@ static struct usb_serial_driver ftdi_sio_device = { ...@@ -828,8 +828,8 @@ static struct usb_serial_driver ftdi_sio_device = {
.chars_in_buffer = ftdi_chars_in_buffer, .chars_in_buffer = ftdi_chars_in_buffer,
.read_bulk_callback = ftdi_read_bulk_callback, .read_bulk_callback = ftdi_read_bulk_callback,
.write_bulk_callback = ftdi_write_bulk_callback, .write_bulk_callback = ftdi_write_bulk_callback,
.tiocmget = ftdi_tiocmget, .tiocmget = ftdi_tiocmget,
.tiocmset = ftdi_tiocmset, .tiocmset = ftdi_tiocmset,
.ioctl = ftdi_ioctl, .ioctl = ftdi_ioctl,
.set_termios = ftdi_set_termios, .set_termios = ftdi_set_termios,
.break_ctl = ftdi_break_ctl, .break_ctl = ftdi_break_ctl,
...@@ -1327,20 +1327,20 @@ static void ftdi_determine_type(struct usb_serial_port *port) ...@@ -1327,20 +1327,20 @@ static void ftdi_determine_type(struct usb_serial_port *port)
__func__); __func__);
} }
} else if (version < 0x200) { } else if (version < 0x200) {
/* Old device. Assume its the original SIO. */ /* Old device. Assume it's the original SIO. */
priv->chip_type = SIO; priv->chip_type = SIO;
priv->baud_base = 12000000 / 16; priv->baud_base = 12000000 / 16;
priv->write_offset = 1; priv->write_offset = 1;
} else if (version < 0x400) { } else if (version < 0x400) {
/* Assume its an FT8U232AM (or FT8U245AM) */ /* Assume it's an FT8U232AM (or FT8U245AM) */
/* (It might be a BM because of the iSerialNumber bug, /* (It might be a BM because of the iSerialNumber bug,
* but it will still work as an AM device.) */ * but it will still work as an AM device.) */
priv->chip_type = FT8U232AM; priv->chip_type = FT8U232AM;
} else if (version < 0x600) { } else if (version < 0x600) {
/* Assume its an FT232BM (or FT245BM) */ /* Assume it's an FT232BM (or FT245BM) */
priv->chip_type = FT232BM; priv->chip_type = FT232BM;
} else { } else {
/* Assume its an FT232R */ /* Assume it's an FT232R */
priv->chip_type = FT232RL; priv->chip_type = FT232RL;
} }
dev_info(&udev->dev, "Detected %s\n", ftdi_chip_name[priv->chip_type]); dev_info(&udev->dev, "Detected %s\n", ftdi_chip_name[priv->chip_type]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment