[pkg-fso-commits] [SCM] linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko branch, andy-tracking, updated. upstream/20090303.gitb9de904e-140-g23b564c
Nelson Castillo
arhuaco at freaks-unidos.net
Mon Jun 8 17:30:08 UTC 2009
The following commit has been merged in the andy-tracking branch:
commit e360a2da41f5d1565424715f119d7290e9e6c073
Author: Nelson Castillo <arhuaco at freaks-unidos.net>
Date: Tue Apr 21 11:18:33 2009 -0500
glamo_fb: Small cleanup
~ Cleanup of a redundant call I introduced before.
~ Removed useless assignation.
Signed-off-by: Nelson Castillo <arhuaco at freaks-unidos.net>
diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c
index 43bb235..914eab4 100644
--- a/drivers/mfd/glamo/glamo-fb.c
+++ b/drivers/mfd/glamo/glamo-fb.c
@@ -461,7 +461,7 @@ static void glamofb_update_lcd_controller(struct glamofb_handle *glamo,
orientation_changing = will_orientation_change(var);
/* Adjust the pitch according to new orientation to come. */
- if (will_orientation_change(var))
+ if (orientation_changing)
pitch = var->yres * var->bits_per_pixel / 8;
else
pitch = var->xres * var->bits_per_pixel / 8;
@@ -493,9 +493,7 @@ static void glamofb_update_lcd_controller(struct glamofb_handle *glamo,
var->yres = xres;
} else {
var->xres_virtual = xres;
- var->xres = xres; /* Unneeded. */
var->yres_virtual = yres;
- var->yres = yres; /* Unneeded. */
var->yres_virtual *= 2;
}
}
--
linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko
More information about the pkg-fso-commits
mailing list