]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
USB: serial: mos7840: drop unused defines
authorJohan Hovold <johan@kernel.org>
Tue, 11 Feb 2025 16:02:29 +0000 (17:02 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 17 Feb 2025 09:59:28 +0000 (10:59 +0100)
Drop some defines that have never (really) been used, some of which are
duplicates (the read and write requests) and others which are just bogus
(the ioctl).

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mos7840.c

index ca3da79afd23f921dc1ea54345a27cc18d3794d1..93710b76289374a8d3ec4ae2ccf305c3236e8569 100644 (file)
 
 #define MOS_WDR_TIMEOUT                5000    /* default urb timeout */
 
-#define MOS_PORT1       0x0200
-#define MOS_PORT2       0x0300
-#define MOS_VENREG      0x0000
-#define MOS_MAX_PORT   0x02
-#define MOS_WRITE       0x0E
-#define MOS_READ        0x0D
-
 /* Requests */
 #define MCS_RD_RTYPE    0xC0
 #define MCS_WR_RTYPE    0x40
 #define MCS_RDREQ       0x0D
 #define MCS_WRREQ       0x0E
-#define MCS_CTRL_TIMEOUT        500
 #define VENDOR_READ_LENGTH      (0x01)
 
-#define MAX_NAME_LEN    64
-
 #define ZLP_REG1  0x3A         /* Zero_Flag_Reg1    58 */
 #define ZLP_REG5  0x3E         /* Zero_Flag_Reg5    62 */
 
-/* For higher baud Rates use TIOCEXBAUD */
-#define TIOCEXBAUD     0x5462
-
 /*
  * Vendor id and device id defines
  *