Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317969
b: refs/heads/master
c: 95c59dc
h: refs/heads/master
i:
  317967: 8bf5ed8
v: v3
  • Loading branch information
Javier M. Mellid authored and Greg Kroah-Hartman committed Jul 17, 2012
1 parent 44b54f2 commit cbcea5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 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: 9a1f72233f4d79165b9b3321b792549145291547
refs/heads/master: 95c59dc96d361d15e0ca1fa6b753cdd8f3ebabec
24 changes: 13 additions & 11 deletions trunk/drivers/staging/sm7xxfb/sm7xxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ struct smtcfb_info {
u_int hz;
};

struct vesa_mode_table {
char mode_index[6];
u16 lfb_width;
u16 lfb_height;
u16 lfb_depth;
struct vesa_mode {
char index[6];
u16 lfb_width;
u16 lfb_height;
u16 lfb_depth;
};

static struct vesa_mode_table vesa_mode[] = {
static struct vesa_mode vesa_mode_table[] = {
{"0x301", 640, 480, 8},
{"0x303", 800, 600, 8},
{"0x305", 1024, 768, 8},
Expand Down Expand Up @@ -776,13 +776,15 @@ static int __init sm712vga_setup(char *options)
pr_debug("sm712vga_setup = %s\n", options);

for (index = 0;
index < ARRAY_SIZE(vesa_mode);
index < ARRAY_SIZE(vesa_mode_table);
index++) {
if (strstr(options, vesa_mode[index].mode_index)) {
smtc_screen_info.lfb_width = vesa_mode[index].lfb_width;
if (strstr(options, vesa_mode_table[index].index)) {
smtc_screen_info.lfb_width =
vesa_mode_table[index].lfb_width;
smtc_screen_info.lfb_height =
vesa_mode[index].lfb_height;
smtc_screen_info.lfb_depth = vesa_mode[index].lfb_depth;
vesa_mode_table[index].lfb_height;
smtc_screen_info.lfb_depth =
vesa_mode_table[index].lfb_depth;
return 0;
}
}
Expand Down

0 comments on commit cbcea5e

Please sign in to comment.