Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304494
b: refs/heads/master
c: bfdd403
h: refs/heads/master
v: v3
  • Loading branch information
Javier M. Mellid authored and Greg Kroah-Hartman committed Apr 30, 2012
1 parent 850303b commit d9c974e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d89954fa9b3db254d40136080e91f8ce19646345
refs/heads/master: bfdd40361987b5c2bd427f0fcf869b8862d4498d
30 changes: 12 additions & 18 deletions trunk/drivers/staging/sm7xx/smtcfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@

#include "smtcfb.h"

#ifdef DEBUG
#define smdbg(format, arg...) printk(KERN_DEBUG format , ## arg)
#else
#define smdbg(format, arg...)
#endif

struct screen_info smtc_screen_info;

/*
Expand Down Expand Up @@ -134,8 +128,9 @@ static void sm712_set_timing(struct smtcfb_info *sfb,
int i = 0, j = 0;
u32 m_nScreenStride;

smdbg("\nppar_info->width = %d ppar_info->height = %d"
"sfb->fb.var.bits_per_pixel = %d ppar_info->hz = %d\n",
dev_dbg(&sfb->dev->dev,
"ppar_info->width=%d ppar_info->height=%d"
"sfb->fb.var.bits_per_pixel=%d ppar_info->hz=%d\n",
ppar_info->width, ppar_info->height,
sfb->fb.var.bits_per_pixel, ppar_info->hz);

Expand All @@ -145,13 +140,14 @@ static void sm712_set_timing(struct smtcfb_info *sfb,
VGAMode[j].bpp == sfb->fb.var.bits_per_pixel &&
VGAMode[j].hz == ppar_info->hz) {

smdbg("\nVGAMode[j].mmSizeX = %d VGAMode[j].mmSizeY ="
"%d VGAMode[j].bpp = %d"
"VGAMode[j].hz=%d\n",
VGAMode[j].mmSizeX, VGAMode[j].mmSizeY,
VGAMode[j].bpp, VGAMode[j].hz);
dev_dbg(&sfb->dev->dev,
"VGAMode[j].mmSizeX=%d VGAMode[j].mmSizeY=%d"
"VGAMode[j].bpp=%d VGAMode[j].hz=%d\n",
VGAMode[j].mmSizeX, VGAMode[j].mmSizeY,
VGAMode[j].bpp, VGAMode[j].hz);

smdbg("VGAMode index=%d\n", j);
dev_dbg(&sfb->dev->dev,
"VGAMode index=%d\n", j);

smtc_mmiowb(0x0, 0x3c6);

Expand Down Expand Up @@ -805,16 +801,14 @@ static int __init sm712vga_setup(char *options)
{
int index;

if (!options || !*options) {
smdbg("\n No vga parameter\n");
if (!options || !*options)
return -EINVAL;
}

smtc_screen_info.lfb_width = 0;
smtc_screen_info.lfb_height = 0;
smtc_screen_info.lfb_depth = 0;

smdbg("\nsm712vga_setup = %s\n", options);
pr_debug("sm712vga_setup = %s\n", options);

for (index = 0;
index < ARRAY_SIZE(vesa_mode);
Expand Down

0 comments on commit d9c974e

Please sign in to comment.