linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fbdev: width and height are unsigned
@ 2008-06-04  9:14 Ville Syrjala
  2008-06-04  9:14 ` [PATCH] fbdev: xoffset, yoffset and yres " Ville Syrjala
  0 siblings, 1 reply; 2+ messages in thread
From: Ville Syrjala @ 2008-06-04  9:14 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: akpm, Ville Syrjala, adaplas

The width and height members of fb_var_screeninfo are __u32. The code
initializes them to -1 which seems wrong, and 0 seems like an equally
good default value.

Signed-off-by: Ville Syrjala <syrjala@sci.fi>
---
 drivers/video/fbmon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c
index 052e180..6a0aa18 100644
--- a/drivers/video/fbmon.c
+++ b/drivers/video/fbmon.c
@@ -879,7 +879,7 @@ int fb_parse_edid(unsigned char *edid, struct fb_var_screeninfo *var)
 		if (edid_is_timing_block(block)) {
 			var->xres = var->xres_virtual = H_ACTIVE;
 			var->yres = var->yres_virtual = V_ACTIVE;
-			var->height = var->width = -1;
+			var->height = var->width = 0;
 			var->right_margin = H_SYNC_OFFSET;
 			var->left_margin = (H_ACTIVE + H_BLANKING) -
 				(H_ACTIVE + H_SYNC_OFFSET + H_SYNC_WIDTH);
-- 
1.5.3.7


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-04  9:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20070826091237.GA17667@aepfle.de>
2007-08-26 15:36 ` [PATCH] atyfb: remove dead code Ville Syrjälä
2008-06-04  9:14 [PATCH] fbdev: width and height are unsigned Ville Syrjala
2008-06-04  9:14 ` [PATCH] fbdev: xoffset, yoffset and yres " Ville Syrjala
2008-06-04  9:14   ` [PATCH] atyfb: Remove dead code Ville Syrjala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).