videomode: clean up empty lines in .c and .h files

This commit is contained in:
Mateusz Guzik 2020-09-01 21:49:14 +00:00
parent 875af9c6af
commit 0a3f7c435a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365139
4 changed files with 3 additions and 10 deletions

View File

@ -133,10 +133,10 @@ edid_is_valid(uint8_t *d)
{
int sum = 0, i;
uint8_t sig[8] = EDID_SIGNATURE;
if (memcmp(d, sig, 8) != 0)
return EINVAL;
for (i = 0; i < 128; i++)
sum += d[i];
if ((sum & 0xff) != 0)
@ -391,7 +391,7 @@ edid_det_timing(uint8_t *data, struct videomode *vmp)
vblank = EDID_DET_TIMING_VBLANK(data);
vsyncwid = EDID_DET_TIMING_VSYNC_WIDTH(data);
vsyncoff = EDID_DET_TIMING_VSYNC_OFFSET(data);
/* Borders are contained within the blank areas. */
vmp->hdisplay = hactive;
@ -644,4 +644,3 @@ edid_parse(uint8_t *data, struct edid_info *edid)
return 0;
}

View File

@ -54,7 +54,6 @@
#define EDID_OFFSET_MFG_TIMING 0x25
#define EDID_OFFSET_STD_TIMING 0x26
#define EDID_OFFSET_DESC_BLOCK 0x36
#define EDID_SIGNATURE { 0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0 }
/* assume x is 16-bit value */
@ -210,7 +209,6 @@
#define EDID_DET_TIMING_FLAG_HSYNC_POSITIVE 0x02
#define EDID_DET_TIMING_FLAG_STEREO_MODE 0x01 /* stereo mode */
/* N.B.: these tests assume that we already checked for detailed timing! */
#define EDID_BLOCK_TYPE(ptr) ((ptr)[3])

View File

@ -77,7 +77,6 @@ pick_mode_by_ref(int width, int height, int refresh)
DPRINTF("%s: looking for %d x %d at up to %d Hz\n", __func__, width,
height, refresh);
for (i = 0; i < videomode_count; i++) {
this = &videomode_list[i];
mref = this->dot_clock * 1000 / (this->htotal * this->vtotal);
diff = abs(mref - refresh);

View File

@ -150,7 +150,6 @@
*
*/
#ifdef _KERNEL
#include <sys/cdefs.h>
@ -203,7 +202,6 @@ print_value(int n, const char *name, unsigned val)
#define print_value(n, name, val)
#endif
/*
* vert_refresh() - as defined by the GTF Timing Standard, compute the
* Stage 1 Parameters using the vertical refresh frequency. In other
@ -566,7 +564,6 @@ vesagtf_mode_params(unsigned h_pixels, unsigned v_lines, unsigned freq,
#endif
/* Stage 1 computations are now complete; I should really pass
the results to another function and do the Stage 2
computations, but I only need a few more values so I'll just