Date: Tue, 1 Sep 2020 21:49:14 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365139 - head/sys/dev/videomode Message-ID: <202009012149.081LnE1M040558@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Tue Sep 1 21:49:14 2020 New Revision: 365139 URL: https://svnweb.freebsd.org/changeset/base/365139 Log: videomode: clean up empty lines in .c and .h files Modified: head/sys/dev/videomode/edid.c head/sys/dev/videomode/edidreg.h head/sys/dev/videomode/pickmode.c head/sys/dev/videomode/vesagtf.c Modified: head/sys/dev/videomode/edid.c ============================================================================== --- head/sys/dev/videomode/edid.c Tue Sep 1 21:48:55 2020 (r365138) +++ head/sys/dev/videomode/edid.c Tue Sep 1 21:49:14 2020 (r365139) @@ -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; } - Modified: head/sys/dev/videomode/edidreg.h ============================================================================== --- head/sys/dev/videomode/edidreg.h Tue Sep 1 21:48:55 2020 (r365138) +++ head/sys/dev/videomode/edidreg.h Tue Sep 1 21:49:14 2020 (r365139) @@ -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 */ @@ -209,7 +208,6 @@ #define EDID_DET_TIMING_FLAG_VSYNC_POSITIVE 0x04 #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]) Modified: head/sys/dev/videomode/pickmode.c ============================================================================== --- head/sys/dev/videomode/pickmode.c Tue Sep 1 21:48:55 2020 (r365138) +++ head/sys/dev/videomode/pickmode.c Tue Sep 1 21:49:14 2020 (r365139) @@ -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); Modified: head/sys/dev/videomode/vesagtf.c ============================================================================== --- head/sys/dev/videomode/vesagtf.c Tue Sep 1 21:48:55 2020 (r365138) +++ head/sys/dev/videomode/vesagtf.c Tue Sep 1 21:49:14 2020 (r365139) @@ -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 @@ -565,7 +563,6 @@ vesagtf_mode_params(unsigned h_pixels, unsigned v_line print_value(22, "[H FREQ]", h_freq); #endif - /* Stage 1 computations are now complete; I should really pass the results to another function and do the Stage 2
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009012149.081LnE1M040558>