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
25 25
26/*26/*
27 * The type definitions. These are from Ted Ts'o's serial.h27 * 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.
28 */30 */
29#define PORT_NS16550A 1431#define PORT_NS16550A 14
30#define PORT_XSCALE 1532#define PORT_XSCALE 15
@@ -94,15 +96,9 @@ · 63 unmodified lines
94#define PORT_SCIF 5396#define PORT_SCIF 53
95#define PORT_IRDA 5497#define PORT_IRDA 54
96 98
97/* Samsung S3C2410 SoC and derivatives thereof */
98#define PORT_S3C2410 55
99
100/* SGI IP22 aka Indy / Challenge S / Indigo 2 */99/* SGI IP22 aka Indy / Challenge S / Indigo 2 */
101#define PORT_IP22ZILOG 56100#define PORT_IP22ZILOG 56
102 101
103/* Sharp LH7a40x -- an ARM9 SoC series */
104#define PORT_LH7A40X 57
105
106/* PPC CPM type number */102/* PPC CPM type number */
107#define PORT_CPM 58103#define PORT_CPM 58
108 104
@@ -112,51 +108,27 @@ · 3 unmodified lines
112/* IBM icom */108/* IBM icom */
113#define PORT_ICOM 60109#define PORT_ICOM 60
114 110
115/* Samsung S3C2440 SoC */
116#define PORT_S3C2440 61
117
118/* Motorola i.MX SoC */111/* Motorola i.MX SoC */
119#define PORT_IMX 62112#define PORT_IMX 62
120 113
121/* Marvell MPSC (obsolete unused) */
122#define PORT_MPSC 63
123
124/* TXX9 type number */114/* TXX9 type number */
125#define PORT_TXX9 64115#define PORT_TXX9 64
126 116
127/* Samsung S3C2400 SoC */
128#define PORT_S3C2400 67
129
130/* M32R SIO */
131#define PORT_M32R_SIO 68
132
133/*Digi jsm */117/*Digi jsm */
134#define PORT_JSM 69118#define PORT_JSM 69
135 119
136/* SUN4V Hypervisor Console */120/* SUN4V Hypervisor Console */
137#define PORT_SUNHV 72121#define PORT_SUNHV 72
138 122
139#define PORT_S3C2412 73
140
141/* Xilinx uartlite */123/* Xilinx uartlite */
142#define PORT_UARTLITE 74124#define PORT_UARTLITE 74
143 125
144/* Blackfin bf5xx */
145#define PORT_BFIN 75
146
147/* Broadcom SB1250, etc. SOC */126/* Broadcom SB1250, etc. SOC */
148#define PORT_SB1250_DUART 77127#define PORT_SB1250_DUART 77
149 128
150/* Freescale ColdFire */129/* Freescale ColdFire */
151#define PORT_MCF 78130#define PORT_MCF 78
152 131
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
160#define PORT_SC26XX 82132#define PORT_SC26XX 82
161 133
162/* SH-SCI */134/* SH-SCI */
@@ -164,9 +136,6 @@ · 1 unmodified line
164 136
165#define PORT_S3C6400 84137#define PORT_S3C6400 84
166 138
167/* NWPSERIAL, now removed */
168#define PORT_NWPSERIAL 85
169
170/* MAX3100 */139/* MAX3100 */
171#define PORT_MAX3100 86140#define PORT_MAX3100 86
172 141
@@ -225,13 +194,10 @@ · 52 unmodified lines
225/* ST ASC type numbers */194/* ST ASC type numbers */
226#define PORT_ASC 105195#define PORT_ASC 105
227 196
228/* Tilera TILE-Gx UART */
229#define PORT_TILEGX 106
230
231/* MEN 16z135 UART */197/* MEN 16z135 UART */
232#define PORT_MEN_Z135 107198#define PORT_MEN_Z135 107
233 199
234/* SC16IS74xx */200/* SC16IS7xx */
235#define PORT_SC16IS7XX 108201#define PORT_SC16IS7XX 108
236 202
237/* MESON */203/* MESON */
@@ -243,9 +209,6 @@ · 5 unmodified lines
243/* SPRD SERIAL */209/* SPRD SERIAL */
244#define PORT_SPRD 111210#define PORT_SPRD 111
245 211
246/* Cris v10 / v32 SoC */
247#define PORT_CRIS 112
248
249/* STM32 USART */212/* STM32 USART */
250#define PORT_STM32 113213#define PORT_STM32 113
251 214

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