History

serial: core: Remove unused PORT_* definitions

For the last couple of years Linux kernel got rid of a few architectures and many platforms. Hence some PORT_* definitions in the serial_core.h become unused and redundant. Remove them for good. Removed IDs are checked for users against Debian Code Search engine. Hence safe to remove as there are no consumers found (only providers). While at it, add a note about 0-13, that are defined in the other file.

Andy Shevchenko committed 3 years ago

Commit 54b45ee1 parent ebee41c1 file · +3 −40Browse files

Unified · Split

include/uapi/linux/serial_core.h+3−40
@@ -25,6 +25,8 @@ · 24 unmodified lines
2525
2626 /*
2727 * The type definitions. These are from Ted Ts'o's serial.h
28+ * By historical reasons the values from 0 to 13 are defined
29+ * in the include/uapi/linux/serial.h, do not define them here.
2830 */
2931 #define PORT_NS16550A 14
3032 #define PORT_XSCALE 15
@@ -94,15 +96,9 @@ · 63 unmodified lines
9496 #define PORT_SCIF 53
9597 #define PORT_IRDA 54
9698
97−/* Samsung S3C2410 SoC and derivatives thereof */
98−#define PORT_S3C2410 55
99−
10099 /* SGI IP22 aka Indy / Challenge S / Indigo 2 */
101100 #define PORT_IP22ZILOG 56
102101
103−/* Sharp LH7a40x -- an ARM9 SoC series */
104−#define PORT_LH7A40X 57
105−
106102 /* PPC CPM type number */
107103 #define PORT_CPM 58
108104
@@ -112,51 +108,27 @@ · 3 unmodified lines
112108 /* IBM icom */
113109 #define PORT_ICOM 60
114110
115−/* Samsung S3C2440 SoC */
116−#define PORT_S3C2440 61
117−
118111 /* Motorola i.MX SoC */
119112 #define PORT_IMX 62
120113
121−/* Marvell MPSC (obsolete unused) */
122−#define PORT_MPSC 63
123−
124114 /* TXX9 type number */
125115 #define PORT_TXX9 64
126116
127−/* Samsung S3C2400 SoC */
128−#define PORT_S3C2400 67
129−
130−/* M32R SIO */
131−#define PORT_M32R_SIO 68
132−
133117 /*Digi jsm */
134118 #define PORT_JSM 69
135119
136120 /* SUN4V Hypervisor Console */
137121 #define PORT_SUNHV 72
138122
139−#define PORT_S3C2412 73
140−
141123 /* Xilinx uartlite */
142124 #define PORT_UARTLITE 74
143125
144−/* Blackfin bf5xx */
145−#define PORT_BFIN 75
146−
147126 /* Broadcom SB1250, etc. SOC */
148127 #define PORT_SB1250_DUART 77
149128
150129 /* Freescale ColdFire */
151130 #define PORT_MCF 78
152131
153−/* Blackfin SPORT */
154−#define PORT_BFIN_SPORT 79
155−
156−/* MN10300 on-chip UART numbers */
157−#define PORT_MN10300 80
158−#define PORT_MN10300_CTS 81
159−
160132 #define PORT_SC26XX 82
161133
162134 /* SH-SCI */
@@ -164,9 +136,6 @@ · 1 unmodified line
164136
165137 #define PORT_S3C6400 84
166138
167−/* NWPSERIAL, now removed */
168−#define PORT_NWPSERIAL 85
169−
170139 /* MAX3100 */
171140 #define PORT_MAX3100 86
172141
@@ -225,13 +194,10 @@ · 52 unmodified lines
225194 /* ST ASC type numbers */
226195 #define PORT_ASC 105
227196
228−/* Tilera TILE-Gx UART */
229−#define PORT_TILEGX 106
230−
231197 /* MEN 16z135 UART */
232198 #define PORT_MEN_Z135 107
233199
234−/* SC16IS74xx */
200+/* SC16IS7xx */
235201 #define PORT_SC16IS7XX 108
236202
237203 /* MESON */
@@ -243,9 +209,6 @@ · 5 unmodified lines
243209 /* SPRD SERIAL */
244210 #define PORT_SPRD 111
245211
246−/* Cris v10 / v32 SoC */
247−#define PORT_CRIS 112
248−
249212 /* STM32 USART */
250213 #define PORT_STM32 113
251214

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t