aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-fb.c
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:11:07 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:11:07 +0000
commit2e878765946c093159e57c26dce0be278233502d (patch)
tree33f9c72d5fa9183f9f44c367d8d3df7fba00e112 /drivers/mfd/glamo/glamo-fb.c
parent8344c67916316f481d029dc63e15c3577c280f11 (diff)
clean-glamofb-cruft.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'drivers/mfd/glamo/glamo-fb.c')
-rw-r--r--drivers/mfd/glamo/glamo-fb.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c
index 1ae933e9a3e..a73402d29eb 100644
--- a/drivers/mfd/glamo/glamo-fb.c
+++ b/drivers/mfd/glamo/glamo-fb.c
@@ -324,14 +324,17 @@ static void glamofb_update_lcd_controller(struct glamofb_handle *glamo,
/* figure out if orientation is going to change */
orientation_changing = will_orientation_change(var);
- /* adjust the pitch according to new orientation to come */
- if (orientation_changing) {
+ /* adjust the pitch according to new orientation to come */
+
+ if (orientation_changing) {
pitch = var->yres * var->bits_per_pixel / 8;
} else {
pitch = var->xres * var->bits_per_pixel / 8;
}
- /* set the awaiten LCD geometry */
+ /*
+ * set the desired LCD geometry
+ */
reg_set_bit_mask(glamo,
GLAMO_REG_LCD_WIDTH,
GLAMO_LCD_WIDTH_MASK,