aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2012-11-22 07:11:32 -0500
committerSteffen Trumtrar <s.trumtrar@pengutronix.de>2013-01-24 02:59:44 -0500
commitea4f3111ef0daffa1d11fded6f375227febca458 (patch)
tree4be2908bdb0ee68d5d7614d9cc2b01ed4fcf8be6
parent7d1f9aeff1ee4a20b1aeb377dd0f579fe9647619 (diff)
viafb: rename display_timing to via_display_timing
The struct display_timing is specific to the via subsystem. The naming leads to collisions with the new struct display_timing, which is supposed to be a shared struct between different subsystems. To clean this up, prepend the existing struct with the subsystem it is specific to. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
-rw-r--r--drivers/video/via/hw.c6
-rw-r--r--drivers/video/via/hw.h2
-rw-r--r--drivers/video/via/lcd.c2
-rw-r--r--drivers/video/via/share.h2
-rw-r--r--drivers/video/via/via_modesetting.c8
-rw-r--r--drivers/video/via/via_modesetting.h6
6 files changed, 13 insertions, 13 deletions
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c
index 80233dae358a..22450908306c 100644
--- a/drivers/video/via/hw.c
+++ b/drivers/video/via/hw.c
@@ -1467,10 +1467,10 @@ void viafb_set_vclock(u32 clk, int set_iga)
1467 via_write_misc_reg_mask(0x0C, 0x0C); /* select external clock */ 1467 via_write_misc_reg_mask(0x0C, 0x0C); /* select external clock */
1468} 1468}
1469 1469
1470struct display_timing var_to_timing(const struct fb_var_screeninfo *var, 1470struct via_display_timing var_to_timing(const struct fb_var_screeninfo *var,
1471 u16 cxres, u16 cyres) 1471 u16 cxres, u16 cyres)
1472{ 1472{
1473 struct display_timing timing; 1473 struct via_display_timing timing;
1474 u16 dx = (var->xres - cxres) / 2, dy = (var->yres - cyres) / 2; 1474 u16 dx = (var->xres - cxres) / 2, dy = (var->yres - cyres) / 2;
1475 1475
1476 timing.hor_addr = cxres; 1476 timing.hor_addr = cxres;
@@ -1491,7 +1491,7 @@ struct display_timing var_to_timing(const struct fb_var_screeninfo *var,
1491void viafb_fill_crtc_timing(const struct fb_var_screeninfo *var, 1491void viafb_fill_crtc_timing(const struct fb_var_screeninfo *var,
1492 u16 cxres, u16 cyres, int iga) 1492 u16 cxres, u16 cyres, int iga)
1493{ 1493{
1494 struct display_timing crt_reg = var_to_timing(var, 1494 struct via_display_timing crt_reg = var_to_timing(var,
1495 cxres ? cxres : var->xres, cyres ? cyres : var->yres); 1495 cxres ? cxres : var->xres, cyres ? cyres : var->yres);
1496 1496
1497 if (iga == IGA1) 1497 if (iga == IGA1)
diff --git a/drivers/video/via/hw.h b/drivers/video/via/hw.h
index a8205754c736..3be073c58b03 100644
--- a/drivers/video/via/hw.h
+++ b/drivers/video/via/hw.h
@@ -637,7 +637,7 @@ extern int viafb_LCD_ON;
637extern int viafb_DVI_ON; 637extern int viafb_DVI_ON;
638extern int viafb_hotplug; 638extern int viafb_hotplug;
639 639
640struct display_timing var_to_timing(const struct fb_var_screeninfo *var, 640struct via_display_timing var_to_timing(const struct fb_var_screeninfo *var,
641 u16 cxres, u16 cyres); 641 u16 cxres, u16 cyres);
642void viafb_fill_crtc_timing(const struct fb_var_screeninfo *var, 642void viafb_fill_crtc_timing(const struct fb_var_screeninfo *var,
643 u16 cxres, u16 cyres, int iga); 643 u16 cxres, u16 cyres, int iga);
diff --git a/drivers/video/via/lcd.c b/drivers/video/via/lcd.c
index 980ee1b1dcf3..5d21ff436ec8 100644
--- a/drivers/video/via/lcd.c
+++ b/drivers/video/via/lcd.c
@@ -549,7 +549,7 @@ void viafb_lcd_set_mode(const struct fb_var_screeninfo *var, u16 cxres,
549 int panel_hres = plvds_setting_info->lcd_panel_hres; 549 int panel_hres = plvds_setting_info->lcd_panel_hres;
550 int panel_vres = plvds_setting_info->lcd_panel_vres; 550 int panel_vres = plvds_setting_info->lcd_panel_vres;
551 u32 clock; 551 u32 clock;
552 struct display_timing timing; 552 struct via_display_timing timing;
553 struct fb_var_screeninfo panel_var; 553 struct fb_var_screeninfo panel_var;
554 const struct fb_videomode *mode_crt_table, *panel_crt_table; 554 const struct fb_videomode *mode_crt_table, *panel_crt_table;
555 555
diff --git a/drivers/video/via/share.h b/drivers/video/via/share.h
index 3158dfc90bed..65c65c611e0a 100644
--- a/drivers/video/via/share.h
+++ b/drivers/video/via/share.h
@@ -319,7 +319,7 @@ struct crt_mode_table {
319 int refresh_rate; 319 int refresh_rate;
320 int h_sync_polarity; 320 int h_sync_polarity;
321 int v_sync_polarity; 321 int v_sync_polarity;
322 struct display_timing crtc; 322 struct via_display_timing crtc;
323}; 323};
324 324
325struct io_reg { 325struct io_reg {
diff --git a/drivers/video/via/via_modesetting.c b/drivers/video/via/via_modesetting.c
index 0e431aee17bb..0b414b09b9b4 100644
--- a/drivers/video/via/via_modesetting.c
+++ b/drivers/video/via/via_modesetting.c
@@ -30,9 +30,9 @@
30#include "debug.h" 30#include "debug.h"
31 31
32 32
33void via_set_primary_timing(const struct display_timing *timing) 33void via_set_primary_timing(const struct via_display_timing *timing)
34{ 34{
35 struct display_timing raw; 35 struct via_display_timing raw;
36 36
37 raw.hor_total = timing->hor_total / 8 - 5; 37 raw.hor_total = timing->hor_total / 8 - 5;
38 raw.hor_addr = timing->hor_addr / 8 - 1; 38 raw.hor_addr = timing->hor_addr / 8 - 1;
@@ -88,9 +88,9 @@ void via_set_primary_timing(const struct display_timing *timing)
88 via_write_reg_mask(VIACR, 0x17, 0x80, 0x80); 88 via_write_reg_mask(VIACR, 0x17, 0x80, 0x80);
89} 89}
90 90
91void via_set_secondary_timing(const struct display_timing *timing) 91void via_set_secondary_timing(const struct via_display_timing *timing)
92{ 92{
93 struct display_timing raw; 93 struct via_display_timing raw;
94 94
95 raw.hor_total = timing->hor_total - 1; 95 raw.hor_total = timing->hor_total - 1;
96 raw.hor_addr = timing->hor_addr - 1; 96 raw.hor_addr = timing->hor_addr - 1;
diff --git a/drivers/video/via/via_modesetting.h b/drivers/video/via/via_modesetting.h
index 06e09fe351ae..f6a6503da3b3 100644
--- a/drivers/video/via/via_modesetting.h
+++ b/drivers/video/via/via_modesetting.h
@@ -33,7 +33,7 @@
33#define VIA_PITCH_MAX 0x3FF8 33#define VIA_PITCH_MAX 0x3FF8
34 34
35 35
36struct display_timing { 36struct via_display_timing {
37 u16 hor_total; 37 u16 hor_total;
38 u16 hor_addr; 38 u16 hor_addr;
39 u16 hor_blank_start; 39 u16 hor_blank_start;
@@ -49,8 +49,8 @@ struct display_timing {
49}; 49};
50 50
51 51
52void via_set_primary_timing(const struct display_timing *timing); 52void via_set_primary_timing(const struct via_display_timing *timing);
53void via_set_secondary_timing(const struct display_timing *timing); 53void via_set_secondary_timing(const struct via_display_timing *timing);
54void via_set_primary_address(u32 addr); 54void via_set_primary_address(u32 addr);
55void via_set_secondary_address(u32 addr); 55void via_set_secondary_address(u32 addr);
56void via_set_primary_pitch(u32 pitch); 56void via_set_primary_pitch(u32 pitch);