Skip to content

Commit f15d296

Browse files
Thomas Zimmermannhdeller
authored andcommitted
fbdev: hgafb: Remove trailing whitespaces
Fix coding style. No functional changes. Signed-off-by: Thomas Zimmermann <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 353e444 commit f15d296

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

drivers/video/fbdev/hgafb.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
/*
22
* linux/drivers/video/hgafb.c -- Hercules graphics adaptor frame buffer device
3-
*
3+
*
44
* Created 25 Nov 1999 by Ferenc Bakonyi ([email protected])
55
* Based on skeletonfb.c by Geert Uytterhoeven and
66
* mdacon.c by Andrew Apted
77
*
88
* History:
99
*
1010
* - Revision 0.1.8 (23 Oct 2002): Ported to new framebuffer api.
11-
*
12-
* - Revision 0.1.7 (23 Jan 2001): fix crash resulting from MDA only cards
11+
*
12+
* - Revision 0.1.7 (23 Jan 2001): fix crash resulting from MDA only cards
1313
* being detected as Hercules. (Paul G.)
1414
* - Revision 0.1.6 (17 Aug 2000): new style structs
1515
* documentation
1616
* - Revision 0.1.5 (13 Mar 2000): spinlocks instead of saveflags();cli();etc
1717
* minor fixes
18-
* - Revision 0.1.4 (24 Jan 2000): fixed a bug in hga_card_detect() for
18+
* - Revision 0.1.4 (24 Jan 2000): fixed a bug in hga_card_detect() for
1919
* HGA-only systems
2020
* - Revision 0.1.3 (22 Jan 2000): modified for the new fb_info structure
2121
* screen is cleared after rmmod
@@ -143,7 +143,7 @@ static bool nologo = 0;
143143

144144
static void write_hga_b(unsigned int val, unsigned char reg)
145145
{
146-
outb_p(reg, HGA_INDEX_PORT);
146+
outb_p(reg, HGA_INDEX_PORT);
147147
outb_p(val, HGA_VALUE_PORT);
148148
}
149149

@@ -155,7 +155,7 @@ static void write_hga_w(unsigned int val, unsigned char reg)
155155

156156
static int test_hga_b(unsigned char val, unsigned char reg)
157157
{
158-
outb_p(reg, HGA_INDEX_PORT);
158+
outb_p(reg, HGA_INDEX_PORT);
159159
outb (val, HGA_VALUE_PORT);
160160
udelay(20); val = (inb_p(HGA_VALUE_PORT) == val);
161161
return val;
@@ -244,7 +244,7 @@ static void hga_show_logo(struct fb_info *info)
244244
void __iomem *dest = hga_vram;
245245
char *logo = linux_logo_bw;
246246
int x, y;
247-
247+
248248
for (y = 134; y < 134 + 80 ; y++) * this needs some cleanup *
249249
for (x = 0; x < 10 ; x++)
250250
writeb(~*(logo++),(dest + HGA_ROWADDR(y) + x + 40));
@@ -255,7 +255,7 @@ static void hga_pan(unsigned int xoffset, unsigned int yoffset)
255255
{
256256
unsigned int base;
257257
unsigned long flags;
258-
258+
259259
base = (yoffset / 8) * 90 + xoffset;
260260
spin_lock_irqsave(&hga_reg_lock, flags);
261261
write_hga_w(base, 0x0c); /* start address */
@@ -310,7 +310,7 @@ static int hga_card_detect(void)
310310
/* Ok, there is definitely a card registering at the correct
311311
* memory location, so now we do an I/O port test.
312312
*/
313-
313+
314314
if (!test_hga_b(0x66, 0x0f)) /* cursor low register */
315315
goto error;
316316

@@ -321,15 +321,15 @@ static int hga_card_detect(void)
321321
* bit of the status register is changing. This test lasts for
322322
* approximately 1/10th of a second.
323323
*/
324-
324+
325325
p_save = q_save = inb_p(HGA_STATUS_PORT) & HGA_STATUS_VSYNC;
326326

327327
for (count=0; count < 50000 && p_save == q_save; count++) {
328328
q_save = inb(HGA_STATUS_PORT) & HGA_STATUS_VSYNC;
329329
udelay(2);
330330
}
331331

332-
if (p_save == q_save)
332+
if (p_save == q_save)
333333
goto error;
334334

335335
switch (inb_p(HGA_STATUS_PORT) & 0x70) {
@@ -415,7 +415,7 @@ static int hgafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
415415
* @info:pointer to fb_info object containing info for current hga board
416416
*
417417
* This function looks only at xoffset, yoffset and the %FB_VMODE_YWRAP
418-
* flag in @var. If input parameters are correct it calls hga_pan() to
418+
* flag in @var. If input parameters are correct it calls hga_pan() to
419419
* program the hardware. @info->var is updated to the new values.
420420
* A zero is returned on success and %-EINVAL for failure.
421421
*/
@@ -442,9 +442,9 @@ static int hgafb_pan_display(struct fb_var_screeninfo *var,
442442
* hgafb_blank - (un)blank the screen
443443
* @blank_mode:blanking method to use
444444
* @info:unused
445-
*
446-
* Blank the screen if blank_mode != 0, else unblank.
447-
* Implements VESA suspend and powerdown modes on hardware that supports
445+
*
446+
* Blank the screen if blank_mode != 0, else unblank.
447+
* Implements VESA suspend and powerdown modes on hardware that supports
448448
* disabling hsync/vsync:
449449
* @blank_mode == 2 means suspend vsync,
450450
* @blank_mode == 3 means suspend hsync,
@@ -539,15 +539,15 @@ static const struct fb_ops hgafb_ops = {
539539
.fb_copyarea = hgafb_copyarea,
540540
.fb_imageblit = hgafb_imageblit,
541541
};
542-
542+
543543
/* ------------------------------------------------------------------------- *
544544
*
545545
* Functions in fb_info
546-
*
546+
*
547547
* ------------------------------------------------------------------------- */
548548

549549
/* ------------------------------------------------------------------------- */
550-
550+
551551
/*
552552
* Initialization
553553
*/

0 commit comments

Comments
 (0)