diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-08 18:02:24 -0800 |
---|---|---|
committer | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-09 17:30:21 +0100 |
commit | 45fde705b627d6194f795237647ce42eb535d1c3 (patch) | |
tree | 4e64bbab1033cd1f281564de14bb59119c3bc89d /src/lib/edid.c | |
parent | 2f919ec4765e4484d79b866332fa19ec338db5c0 (diff) |
src/lib: Add space before (
Fix the following error detected by checkpatch.pl:
ERROR: space required before the open parenthesis '('
TEST=Build and run on Galileo Gen2
Change-Id: I8953fecbe75136ff989c9e3cf6c5e155dcee3c3b
Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18698
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/lib/edid.c')
-rw-r--r-- | src/lib/edid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/edid.c b/src/lib/edid.c index 4fb361aa0f..7138b8b256 100644 --- a/src/lib/edid.c +++ b/src/lib/edid.c @@ -381,7 +381,7 @@ detailed_block(struct edid *result_edid, unsigned char *x, int in_extension, c->has_valid_range_descriptor = 0; printk(BIOS_SPEW, "Preferred aspect ratio: "); - switch((x[15] & 0xe0) >> 5) { + switch ((x[15] & 0xe0) >> 5) { case 0x00: printk(BIOS_SPEW, "4:3"); break; case 0x01: printk(BIOS_SPEW, "16:9"); break; case 0x02: printk(BIOS_SPEW, "16:10"); break; @@ -907,7 +907,7 @@ parse_extension(struct edid *out, unsigned char *x, struct edid_context *c) int conformant_extension = 0; printk(BIOS_SPEW, "\n"); - switch(x[0]) { + switch (x[0]) { case 0x02: printk(BIOS_SPEW, "CEA extension block\n"); extension_version(out, x); @@ -1345,7 +1345,7 @@ int decode_edid(unsigned char *edid, int size, struct edid *out) * by v1.3 and we are unlikely to use any EDID 2.0 panels, we ignore * that case now and can fix it when we need to use a real 2.0 panel. */ - for(i = 128; i < size; i += 128) + for (i = 128; i < size; i += 128) c.nonconformant_extension += parse_extension(out, &edid[i], &c); @@ -1562,7 +1562,7 @@ void set_vbe_mode_info_valid(const struct edid *edid, uintptr_t fb_addr) edid_fb.bits_per_pixel = edid->framebuffer_bits_per_pixel; edid_fb.reserved_mask_pos = 0; edid_fb.reserved_mask_size = 0; - switch(edid->framebuffer_bits_per_pixel){ + switch (edid->framebuffer_bits_per_pixel){ case 32: case 24: /* packed into 4-byte words */ |