Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8967
b: refs/heads/master
c: 7b6a186
h: refs/heads/master
i:
  8965: 47c4c6e
  8963: 409a5c2
  8959: 854e93c
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Sep 15, 2005
1 parent 543b112 commit 73d8faf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 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: be201f7f4cd26b1bb994062803e0d87877e749ce
refs/heads/master: 7b6a186d65589901a73d460070504a5e02703c45
11 changes: 7 additions & 4 deletions trunk/drivers/video/savage/savagefb-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,13 @@ int savagefb_probe_i2c_connector(struct fb_info *info, u8 **out_edid)

if (!edid) {
/* try to get from firmware */
edid = kmalloc(EDID_LENGTH, GFP_KERNEL);
if (edid)
memcpy(edid, fb_firmware_edid(info->device),
EDID_LENGTH);
const u8 *e = fb_firmware_edid(info->device);

if (e) {
edid = kmalloc(EDID_LENGTH, GFP_KERNEL);
if (edid)
memcpy(edid, e, EDID_LENGTH);
}
}

if (out_edid)
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/video/savage/savagefb.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@

#define S3_SAVAGE_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE2000))

#define S3_MOBILE_TWISTER_SERIES(chip) ((chip==S3_TWISTER) || (chip == S3_PROSAVAGEDDR))

/* Chip tags. These are used to group the adapters into
* related families.
*/
Expand All @@ -74,8 +72,6 @@ typedef enum {
S3_PROSAVAGE,
S3_SUPERSAVAGE,
S3_SAVAGE2000,
S3_PROSAVAGEDDR,
S3_TWISTER,
S3_LAST
} savage_chipset;

Expand Down
11 changes: 5 additions & 6 deletions trunk/drivers/video/savage/savagefb_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1773,8 +1773,7 @@ static int __devinit savage_init_hw (struct savagefb_par *par)
}
}

if (S3_SAVAGE_MOBILE_SERIES(par->chip) ||
(S3_MOBILE_TWISTER_SERIES(par->chip) && !par->crtonly))
if (S3_SAVAGE_MOBILE_SERIES(par->chip) && !par->crtonly)
par->display_type = DISP_LCD;
else if (dvi || (par->chip == S3_SAVAGE4 && par->dvi))
par->display_type = DISP_DFP;
Expand All @@ -1783,7 +1782,7 @@ static int __devinit savage_init_hw (struct savagefb_par *par)

/* Check LCD panel parrmation */

if (par->chip == S3_SAVAGE_MX) {
if (par->display_type == DISP_LCD) {
unsigned char cr6b = VGArCR( 0x6b );

int panelX = (VGArSEQ (0x61) +
Expand Down Expand Up @@ -1922,15 +1921,15 @@ static int __devinit savage_init_fb_info (struct fb_info *info,
snprintf (info->fix.id, 16, "ProSavageKM");
break;
case FB_ACCEL_S3TWISTER_P:
par->chip = S3_TWISTER;
par->chip = S3_PROSAVAGE;
snprintf (info->fix.id, 16, "TwisterP");
break;
case FB_ACCEL_S3TWISTER_K:
par->chip = S3_TWISTER;
par->chip = S3_PROSAVAGE;
snprintf (info->fix.id, 16, "TwisterK");
break;
case FB_ACCEL_PROSAVAGE_DDR:
par->chip = S3_PROSAVAGEDDR;
par->chip = S3_PROSAVAGE;
snprintf (info->fix.id, 16, "ProSavageDDR");
break;
case FB_ACCEL_PROSAVAGE_DDRK:
Expand Down

0 comments on commit 73d8faf

Please sign in to comment.