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

USB: serial: ftdi_sio: drop redundant chip type comments

Drop redundant chip type comments.

Signed-off-by: Johan Hovold <johan@kernel.org>

+10 -11
+10 -11
drivers/usb/serial/ftdi_sio.c
··· 61 61 62 62 struct ftdi_private { 63 63 enum ftdi_chip_type chip_type; 64 - /* type of device, either SIO or FT8U232AM */ 65 64 int baud_base; /* baud base clock for divisor setting */ 66 65 int custom_divisor; /* custom_divisor kludge, this is for 67 66 baud_base (different from what goes to the ··· 1317 1318 if (!baud) 1318 1319 baud = 9600; 1319 1320 switch (priv->chip_type) { 1320 - case SIO: /* SIO chip */ 1321 + case SIO: 1321 1322 switch (baud) { 1322 1323 case 300: div_value = ftdi_sio_b300; break; 1323 1324 case 600: div_value = ftdi_sio_b600; break; ··· 1337 1338 div_okay = 0; 1338 1339 } 1339 1340 break; 1340 - case FT8U232AM: /* 8U232AM chip */ 1341 + case FT8U232AM: 1341 1342 if (baud <= 3000000) { 1342 1343 div_value = ftdi_232am_baud_to_divisor(baud); 1343 1344 } else { ··· 1347 1348 div_okay = 0; 1348 1349 } 1349 1350 break; 1350 - case FT232BM: /* FT232BM chip */ 1351 - case FT2232C: /* FT2232C chip */ 1352 - case FT232RL: /* FT232RL chip */ 1353 - case FTX: /* FT-X series */ 1351 + case FT232BM: 1352 + case FT2232C: 1353 + case FT232RL: 1354 + case FTX: 1354 1355 if (baud <= 3000000) { 1355 1356 u16 product_id = le16_to_cpu( 1356 1357 port->serial->dev->descriptor.idProduct); ··· 1370 1371 baud = 9600; 1371 1372 } 1372 1373 break; 1373 - case FT2232H: /* FT2232H chip */ 1374 - case FT4232H: /* FT4232H chip */ 1375 - case FT232H: /* FT232H chip */ 1374 + case FT2232H: 1375 + case FT4232H: 1376 + case FT232H: 1376 1377 if ((baud <= 12000000) && (baud >= 1200)) { 1377 1378 div_value = ftdi_2232h_baud_to_divisor(baud); 1378 1379 } else if (baud < 1200) { ··· 1384 1385 baud = 9600; 1385 1386 } 1386 1387 break; 1387 - } /* priv->chip_type */ 1388 + } 1388 1389 1389 1390 if (div_okay) { 1390 1391 dev_dbg(dev, "%s - Baud rate set to %d (divisor 0x%lX) on chip %s\n",