src/drivers: Remove unnecessary space after casts

Change-Id: I16689da893b5a0c3254364759d435281cb3e1caf
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69803
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes Haouas
2022-11-18 15:05:39 +01:00
committed by Felix Held
parent 385939f7cf
commit 1ef547eec7
14 changed files with 45 additions and 45 deletions

View File

@@ -186,7 +186,7 @@ vga_font_8x16_load(void)
/* plane 2 */
vga_sr_write(0x02, 0x04);
p = (unsigned char *) VGA_FB;
p = (unsigned char *)VGA_FB;
for (i = 0; i < count; i++) {
for (j = 0; j < 32; j++) {
if (j < height)
@@ -262,7 +262,7 @@ vga_frame_set(unsigned int line, unsigned int character)
void
vga_line_write(unsigned int line, const char *string)
{
unsigned short *p = (unsigned short *) VGA_FB + (80 * line);
unsigned short *p = (unsigned short *)VGA_FB + (80 * line);
int i, len = strlen(string);
for (i = 0; i < 80; i++) {

View File

@@ -147,10 +147,10 @@ vga_ar_read(unsigned char index)
{
unsigned char ret;
(void) inb(VGA_STAT1);
(void)inb(VGA_STAT1);
outb(index, VGA_AR_INDEX);
ret = inb(VGA_AR_VALUE_READ);
(void) inb(VGA_STAT1);
(void)inb(VGA_STAT1);
return ret;
}
@@ -158,10 +158,10 @@ vga_ar_read(unsigned char index)
void
vga_ar_write(unsigned char index, unsigned char value)
{
(void) inb(VGA_STAT1);
(void)inb(VGA_STAT1);
outb(index, VGA_AR_INDEX);
outb(value, VGA_AR_VALUE_WRITE);
(void) inb(VGA_STAT1);
(void)inb(VGA_STAT1);
}
void
@@ -209,17 +209,17 @@ vga_gr_mask(unsigned char index, unsigned char value, unsigned char mask)
void
vga_palette_enable(void)
{
(void) inb(VGA_STAT1);
(void)inb(VGA_STAT1);
outb(0x00, VGA_AR_INDEX);
(void) inb(VGA_STAT1);
(void)inb(VGA_STAT1);
}
void
vga_palette_disable(void)
{
(void) inb(VGA_STAT1);
(void)inb(VGA_STAT1);
outb(0x20, VGA_AR_INDEX);
(void) inb(VGA_STAT1);
(void)inb(VGA_STAT1);
}
unsigned char