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

USB: serial: io_edgeport: drop unused definitions

Drop unused definitions relating to a never mainlined custom
proc-interface and some likewise unused string descriptor definitions.

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

-68
-68
drivers/usb/serial/io_edgeport.h
··· 10 10 #if !defined(_IO_EDGEPORT_H_) 11 11 #define _IO_EDGEPORT_H_ 12 12 13 - 14 13 #define MAX_RS232_PORTS 8 /* Max # of RS-232 ports per device */ 15 14 16 15 /* typedefs that the insideout headers need */ ··· 20 21 #define HIGH8(a) ((unsigned char)((a & 0xff00) >> 8)) 21 22 #endif 22 23 23 - #ifndef __KERNEL__ 24 - #define __KERNEL__ 25 - #endif 26 - 27 24 #include "io_usbvend.h" 28 - 29 - 30 - 31 - /* The following table is used to map the USBx port number to 32 - * the device serial number (or physical USB path), */ 33 - #define MAX_EDGEPORTS 64 34 - 35 - struct comMapper { 36 - char SerialNumber[MAX_SERIALNUMBER_LEN+1]; /* Serial number/usb path */ 37 - int numPorts; /* Number of ports */ 38 - int Original[MAX_RS232_PORTS]; /* Port numbers set by IOCTL */ 39 - int Port[MAX_RS232_PORTS]; /* Actual used port numbers */ 40 - }; 41 - 42 - 43 - #define EDGEPORT_CONFIG_DEVICE "/proc/edgeport" 44 - 45 - /* /proc/edgeport Interface 46 - * This interface uses read/write/lseek interface to talk to the edgeport driver 47 - * the following read functions are supported: */ 48 - #define PROC_GET_MAPPING_TO_PATH 1 49 - #define PROC_GET_COM_ENTRY 2 50 - #define PROC_GET_EDGE_MANUF_DESCRIPTOR 3 51 - #define PROC_GET_BOOT_DESCRIPTOR 4 52 - #define PROC_GET_PRODUCT_INFO 5 53 - #define PROC_GET_STRINGS 6 54 - #define PROC_GET_CURRENT_COM_MAPPING 7 55 - 56 - /* The parameters to the lseek() for the read is: */ 57 - #define PROC_READ_SETUP(Command, Argument) ((Command) + ((Argument)<<8)) 58 - 59 - 60 - /* the following write functions are supported: */ 61 - #define PROC_SET_COM_MAPPING 1 62 - #define PROC_SET_COM_ENTRY 2 63 - 64 - 65 - /* The following structure is passed to the write */ 66 - struct procWrite { 67 - int Command; 68 - union { 69 - struct comMapper Entry; 70 - int ComMappingBasedOnUSBPort; /* Boolean value */ 71 - } u; 72 - }; 73 25 74 26 /* 75 27 * Product information read from the Edgeport ··· 57 107 58 108 struct edge_compatibility_bits Epic; 59 109 }; 60 - 61 - /* 62 - * Edgeport Stringblock String locations 63 - */ 64 - #define EDGESTRING_MANUFNAME 1 /* Manufacture Name */ 65 - #define EDGESTRING_PRODNAME 2 /* Product Name */ 66 - #define EDGESTRING_SERIALNUM 3 /* Serial Number */ 67 - #define EDGESTRING_ASSEMNUM 4 /* Assembly Number */ 68 - #define EDGESTRING_OEMASSEMNUM 5 /* OEM Assembly Number */ 69 - #define EDGESTRING_MANUFDATE 6 /* Manufacture Date */ 70 - #define EDGESTRING_ORIGSERIALNUM 7 /* Serial Number */ 71 - 72 - struct string_block { 73 - __u16 NumStrings; /* Number of strings in block */ 74 - __u16 Strings[1]; /* Start of string block */ 75 - }; 76 - 77 - 78 110 79 111 #endif