Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164857
b: refs/heads/master
c: b008c64
h: refs/heads/master
i:
  164855: 7f5b4f0
v: v3
  • Loading branch information
Florian Tobias Schandinat authored and Linus Torvalds committed Sep 23, 2009
1 parent 966e3ca commit 4903422
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 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: 13147f291cb18489cbaa550b100dee6f9defd007
refs/heads/master: b008c64b5dfe37ac14928668da60132e9c8361ff
18 changes: 2 additions & 16 deletions trunk/drivers/video/via/viafbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,8 @@ static int viafb_cursor(struct fb_info *info, struct fb_cursor *cursor)
return -ENODEV;

/* When duoview and using lcd , use soft cursor */
if (viafb_LCD_ON || ((struct viafb_par *)(info->par))->duoview)
if (viafb_LCD_ON || (!viafb_SAMM_ON &&
viafb_LCD2_ON + viafb_DVI_ON + viafb_CRT_ON == 2))
return -ENODEV;

viafb_show_hw_cursor(info, HW_Cursor_OFF);
Expand Down Expand Up @@ -1379,18 +1380,6 @@ static int get_primary_device(void)
return primary_device;
}

static u8 is_duoview(void)
{
if (0 == viafb_SAMM_ON) {
if (viafb_LCD_ON + viafb_LCD2_ON +
viafb_DVI_ON + viafb_CRT_ON == 2)
return true;
return false;
} else {
return false;
}
}

static void apply_second_mode_setting(struct fb_var_screeninfo
*sec_var)
{
Expand Down Expand Up @@ -1499,8 +1488,6 @@ static int apply_device_setting(struct viafb_ioctl_setting setting_info,
need_set_mode = 1;
}

viaparinfo->duoview = is_duoview();

if (!need_set_mode) {
;
} else {
Expand Down Expand Up @@ -1621,7 +1608,6 @@ static void parse_active_dev(void)
viafb_CRT_ON = STATE_ON;
viafb_SAMM_ON = STATE_OFF;
}
viaparinfo->duoview = is_duoview();
}

static void parse_video_dev(void)
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/video/via/viafbdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ struct viafb_par {
u32 VQ_end; /* Virtual Queue End Address */
u32 iga_path;
struct proc_dir_entry *proc_entry; /*viafb proc entry */
u8 duoview; /*Is working in duoview mode? */

/* I2C stuff */
struct via_i2c_stuff i2c_stuff;
Expand Down

0 comments on commit 4903422

Please sign in to comment.