All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] atyfb: remove dead code
@ 2007-08-26  9:12 Olaf Hering
  2007-08-26 15:36   ` Ville Syrjälä
  0 siblings, 1 reply; 4+ messages in thread
From: Olaf Hering @ 2007-08-26  9:12 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel

Remove dead code.

Signed-off-by: Olaf Hering <olaf@aepfle.de>

---
 drivers/video/aty/atyfb_base.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

--- a/drivers/video/aty/atyfb_base.c
+++ b/drivers/video/aty/atyfb_base.c
@@ -2767,8 +2767,7 @@ static int atyfb_blank(int blank, struct
 	if (par->lock_blank || par->asleep)
 		return 0;
 
-#ifdef CONFIG_FB_ATY_BACKLIGHT
-#elif defined(CONFIG_FB_ATY_GENERIC_LCD)
+#ifdef CONFIG_FB_ATY_GENERIC_LCD
 	if (par->lcd_table && blank > FB_BLANK_NORMAL &&
 	    (aty_ld_lcd(LCD_GEN_CNTL, par) & LCD_ON)) {
 		u32 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
@@ -2797,8 +2796,7 @@ static int atyfb_blank(int blank, struct
 	}
 	aty_st_le32(CRTC_GEN_CNTL, gen_cntl, par);
 
-#ifdef CONFIG_FB_ATY_BACKLIGHT
-#elif defined(CONFIG_FB_ATY_GENERIC_LCD)
+#ifdef CONFIG_FB_ATY_GENERIC_LCD
 	if (par->lcd_table && blank <= FB_BLANK_NORMAL &&
 	    (aty_ld_lcd(LCD_GEN_CNTL, par) & LCD_ON)) {
 		u32 pm = aty_ld_lcd(POWER_MANAGEMENT, par);

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [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; 4+ 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] 4+ messages in thread

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-26  9:12 [PATCH] atyfb: remove dead code Olaf Hering
2007-08-26 15:36 ` Ville Syrjälä
2007-08-26 15:36   ` Ville Syrjälä
  -- strict thread matches above, loose matches on Subject: below --
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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.