aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/via/viafbdev.c
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2010-04-17 15:44:52 -0400
committerJonathan Corbet <corbet@lwn.net>2010-05-07 19:17:38 -0400
commit2749413db17723cf894036c0eaf339f289bcc841 (patch)
tree8bfff7a881bf7fa54e93a8a11665c6e51c736859 /drivers/video/via/viafbdev.c
parentc2b12cd496bbe5eff6a48bc669fe6b0c56f2b3d9 (diff)
viafb: unify modesetting functions
viafb: unify modesetting functions This patch unifies some cleaned up modesetting functions to prepare for moving them to an extra file. This includes make them use via_io and changing there names to reflect that they do not depend on anything framebuffer specific. Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/viafbdev.c')
-rw-r--r--drivers/video/via/viafbdev.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c
index 70ed71facd87..e94f913f87be 100644
--- a/drivers/video/via/viafbdev.c
+++ b/drivers/video/via/viafbdev.c
@@ -317,12 +317,12 @@ static int viafb_pan_display(struct fb_var_screeninfo *var,
317 317
318 DEBUG_MSG(KERN_DEBUG "viafb_pan_display, address = %d\n", vram_addr); 318 DEBUG_MSG(KERN_DEBUG "viafb_pan_display, address = %d\n", vram_addr);
319 if (!viafb_dual_fb) { 319 if (!viafb_dual_fb) {
320 viafb_set_primary_address(vram_addr); 320 via_set_primary_address(vram_addr);
321 viafb_set_secondary_address(vram_addr); 321 via_set_secondary_address(vram_addr);
322 } else if (viapar->iga_path == IGA1) 322 } else if (viapar->iga_path == IGA1)
323 viafb_set_primary_address(vram_addr); 323 via_set_primary_address(vram_addr);
324 else 324 else
325 viafb_set_secondary_address(vram_addr); 325 via_set_secondary_address(vram_addr);
326 326
327 return 0; 327 return 0;
328} 328}
@@ -1018,8 +1018,8 @@ static void viafb_set_device(struct device_t active_dev)
1018 viafb_SAMM_ON = active_dev.samm; 1018 viafb_SAMM_ON = active_dev.samm;
1019 viafb_primary_dev = active_dev.primary_dev; 1019 viafb_primary_dev = active_dev.primary_dev;
1020 1020
1021 viafb_set_primary_address(0); 1021 via_set_primary_address(0);
1022 viafb_set_secondary_address(viafb_SAMM_ON ? viafb_second_offset : 0); 1022 via_set_secondary_address(viafb_SAMM_ON ? viafb_second_offset : 0);
1023 viafb_set_iga_path(); 1023 viafb_set_iga_path();
1024} 1024}
1025 1025
@@ -1165,8 +1165,9 @@ static int apply_device_setting(struct viafb_ioctl_setting setting_info,
1165 if (viafb_SAMM_ON) 1165 if (viafb_SAMM_ON)
1166 viafb_primary_dev = setting_info.primary_device; 1166 viafb_primary_dev = setting_info.primary_device;
1167 1167
1168 viafb_set_primary_address(0); 1168 via_set_primary_address(0);
1169 viafb_set_secondary_address(viafb_SAMM_ON ? viafb_second_offset : 0); 1169 via_set_secondary_address(viafb_SAMM_ON ?
1170 viafb_second_offset : 0);
1170 viafb_set_iga_path(); 1171 viafb_set_iga_path();
1171 } 1172 }
1172 need_set_mode = 1; 1173 need_set_mode = 1;