aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2011-08-31 03:42:49 -0400
committerDave Airlie <airlied@redhat.com>2011-09-01 04:37:40 -0400
commit6558429bc4c7351cc3d80fc9055f1204a9adf060 (patch)
tree445a5c6d97088fb2740c775edc446b5ebdd0c4de /drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
parente666d66b427b0ddebda890d4d60013c925332266 (diff)
vmwgfx: Fix 'bbp' typo
Signed-off-by: Michel Dänzer <daenzer@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_fb.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_fb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
index bfab60c938ac..5fb80b138e80 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
@@ -405,14 +405,14 @@ int vmw_fb_init(struct vmw_private *vmw_priv)
405 struct fb_info *info; 405 struct fb_info *info;
406 unsigned initial_width, initial_height; 406 unsigned initial_width, initial_height;
407 unsigned fb_width, fb_height; 407 unsigned fb_width, fb_height;
408 unsigned fb_bbp, fb_depth, fb_offset, fb_pitch, fb_size; 408 unsigned fb_bpp, fb_depth, fb_offset, fb_pitch, fb_size;
409 int ret; 409 int ret;
410 410
411 /* XXX These shouldn't be hardcoded. */ 411 /* XXX These shouldn't be hardcoded. */
412 initial_width = 800; 412 initial_width = 800;
413 initial_height = 600; 413 initial_height = 600;
414 414
415 fb_bbp = 32; 415 fb_bpp = 32;
416 fb_depth = 24; 416 fb_depth = 24;
417 417
418 /* XXX As shouldn't these be as well. */ 418 /* XXX As shouldn't these be as well. */
@@ -422,7 +422,7 @@ int vmw_fb_init(struct vmw_private *vmw_priv)
422 initial_width = min(fb_width, initial_width); 422 initial_width = min(fb_width, initial_width);
423 initial_height = min(fb_height, initial_height); 423 initial_height = min(fb_height, initial_height);
424 424
425 fb_pitch = fb_width * fb_bbp / 8; 425 fb_pitch = fb_width * fb_bpp / 8;
426 fb_size = fb_pitch * fb_height; 426 fb_size = fb_pitch * fb_height;
427 fb_offset = vmw_read(vmw_priv, SVGA_REG_FB_OFFSET); 427 fb_offset = vmw_read(vmw_priv, SVGA_REG_FB_OFFSET);
428 428
@@ -437,7 +437,7 @@ int vmw_fb_init(struct vmw_private *vmw_priv)
437 par = info->par; 437 par = info->par;
438 par->vmw_priv = vmw_priv; 438 par->vmw_priv = vmw_priv;
439 par->depth = fb_depth; 439 par->depth = fb_depth;
440 par->bpp = fb_bbp; 440 par->bpp = fb_bpp;
441 par->vmalloc = NULL; 441 par->vmalloc = NULL;
442 par->max_width = fb_width; 442 par->max_width = fb_width;
443 par->max_height = fb_height; 443 par->max_height = fb_height;