Skip to content

Commit 579e5fd

Browse files
d3athjest3rhdeller
authored andcommitted
parisc: Fix formatting errors in io.c
Mutliple lines in the file contain tabs in lines where there is no code. Just remove them. Signed-off-by: Julian Vetter <julian@outer-limits.org> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 2014c95 commit 579e5fd

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

arch/parisc/lib/io.c

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ void insw (unsigned long port, void *dst, unsigned long count)
123123
unsigned char *p;
124124

125125
p = (unsigned char *)dst;
126-
126+
127127
if (!count)
128128
return;
129-
129+
130130
switch (((unsigned long)p) & 0x3)
131131
{
132132
case 0x00: /* Buffer 32-bit aligned */
133133
while (count>=2) {
134-
134+
135135
count -= 2;
136136
l = cpu_to_le16(inw(port)) << 16;
137137
l |= cpu_to_le16(inw(port));
@@ -142,13 +142,13 @@ void insw (unsigned long port, void *dst, unsigned long count)
142142
*(unsigned short *)p = cpu_to_le16(inw(port));
143143
}
144144
break;
145-
145+
146146
case 0x02: /* Buffer 16-bit aligned */
147147
*(unsigned short *)p = cpu_to_le16(inw(port));
148148
p += 2;
149149
count--;
150150
while (count>=2) {
151-
151+
152152
count -= 2;
153153
l = cpu_to_le16(inw(port)) << 16;
154154
l |= cpu_to_le16(inw(port));
@@ -159,13 +159,13 @@ void insw (unsigned long port, void *dst, unsigned long count)
159159
*(unsigned short *)p = cpu_to_le16(inw(port));
160160
}
161161
break;
162-
162+
163163
case 0x01: /* Buffer 8-bit aligned */
164164
case 0x03:
165165
/* I don't bother with 32bit transfers
166166
* in this case, 16bit will have to do -- DE */
167167
--count;
168-
168+
169169
l = cpu_to_le16(inw(port));
170170
*p = l >> 8;
171171
p++;
@@ -195,10 +195,10 @@ void insl (unsigned long port, void *dst, unsigned long count)
195195
unsigned char *p;
196196

197197
p = (unsigned char *)dst;
198-
198+
199199
if (!count)
200200
return;
201-
201+
202202
switch (((unsigned long) dst) & 0x3)
203203
{
204204
case 0x00: /* Buffer 32-bit aligned */
@@ -208,14 +208,14 @@ void insl (unsigned long port, void *dst, unsigned long count)
208208
p += 4;
209209
}
210210
break;
211-
211+
212212
case 0x02: /* Buffer 16-bit aligned */
213213
--count;
214-
214+
215215
l = cpu_to_le32(inl(port));
216216
*(unsigned short *)p = l >> 16;
217217
p += 2;
218-
218+
219219
while (count--)
220220
{
221221
l2 = cpu_to_le32(inl(port));
@@ -227,7 +227,7 @@ void insl (unsigned long port, void *dst, unsigned long count)
227227
break;
228228
case 0x01: /* Buffer 8-bit aligned */
229229
--count;
230-
230+
231231
l = cpu_to_le32(inl(port));
232232
*(unsigned char *)p = l >> 24;
233233
p++;
@@ -244,7 +244,7 @@ void insl (unsigned long port, void *dst, unsigned long count)
244244
break;
245245
case 0x03: /* Buffer 8-bit aligned */
246246
--count;
247-
247+
248248
l = cpu_to_le32(inl(port));
249249
*p = l >> 24;
250250
p++;
@@ -293,10 +293,10 @@ void outsw (unsigned long port, const void *src, unsigned long count)
293293
const unsigned char *p;
294294

295295
p = (const unsigned char *)src;
296-
296+
297297
if (!count)
298298
return;
299-
299+
300300
switch (((unsigned long)p) & 0x3)
301301
{
302302
case 0x00: /* Buffer 32-bit aligned */
@@ -311,13 +311,13 @@ void outsw (unsigned long port, const void *src, unsigned long count)
311311
outw(le16_to_cpu(*(unsigned short*)p), port);
312312
}
313313
break;
314-
314+
315315
case 0x02: /* Buffer 16-bit aligned */
316-
316+
317317
outw(le16_to_cpu(*(unsigned short*)p), port);
318318
p += 2;
319319
count--;
320-
320+
321321
while (count>=2) {
322322
count -= 2;
323323
l = *(unsigned int *)p;
@@ -329,11 +329,11 @@ void outsw (unsigned long port, const void *src, unsigned long count)
329329
outw(le16_to_cpu(*(unsigned short *)p), port);
330330
}
331331
break;
332-
333-
case 0x01: /* Buffer 8-bit aligned */
332+
333+
case 0x01: /* Buffer 8-bit aligned */
334334
/* I don't bother with 32bit transfers
335335
* in this case, 16bit will have to do -- DE */
336-
336+
337337
l = *p << 8;
338338
p++;
339339
count--;
@@ -348,7 +348,7 @@ void outsw (unsigned long port, const void *src, unsigned long count)
348348
l2 = *(unsigned char *)p;
349349
outw (le16_to_cpu(l | l2>>8), port);
350350
break;
351-
351+
352352
}
353353
}
354354

@@ -365,10 +365,10 @@ void outsl (unsigned long port, const void *src, unsigned long count)
365365
const unsigned char *p;
366366

367367
p = (const unsigned char *)src;
368-
368+
369369
if (!count)
370370
return;
371-
371+
372372
switch (((unsigned long)p) & 0x3)
373373
{
374374
case 0x00: /* Buffer 32-bit aligned */
@@ -378,13 +378,13 @@ void outsl (unsigned long port, const void *src, unsigned long count)
378378
p += 4;
379379
}
380380
break;
381-
381+
382382
case 0x02: /* Buffer 16-bit aligned */
383383
--count;
384-
384+
385385
l = *(unsigned short *)p;
386386
p += 2;
387-
387+
388388
while (count--)
389389
{
390390
l2 = *(unsigned int *)p;
@@ -415,7 +415,7 @@ void outsl (unsigned long port, const void *src, unsigned long count)
415415
break;
416416
case 0x03: /* Buffer 8-bit aligned */
417417
--count;
418-
418+
419419
l = *p << 24;
420420
p++;
421421

0 commit comments

Comments
 (0)