aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-11-29 08:33:41 -0500
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-03-12 17:40:55 -0400
commit93ff259846a774ff37dca54792c5a3a6425882c0 (patch)
treeb5bbdb3005ec0dc57f674c1c88de5abede17c65f /arch
parent2d04559dc23bed905ed2904f2bbcbcc3f1a7fd91 (diff)
fbdev: sh_mobile_lcdc: Rename (lcd|num)_cfg (lcd|num)_modes
The struct sh_mobile_lcdc_chan_cfg platform data contains a list of video modes. Name the lcd_cfg and num_cfg fields to reflect that they describe video modes. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-shmobile/board-ag5evm.c4
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c4
-rw-r--r--arch/arm/mach-shmobile/board-bonito.c4
-rw-r--r--arch/arm/mach-shmobile/board-mackerel.c4
-rw-r--r--arch/sh/boards/mach-ap325rxa/setup.c4
-rw-r--r--arch/sh/boards/mach-ecovec24/setup.c8
-rw-r--r--arch/sh/boards/mach-kfr2r09/setup.c4
-rw-r--r--arch/sh/boards/mach-migor/setup.c8
-rw-r--r--arch/sh/boards/mach-se/7724/setup.c8
9 files changed, 24 insertions, 24 deletions
diff --git a/arch/arm/mach-shmobile/board-ag5evm.c b/arch/arm/mach-shmobile/board-ag5evm.c
index 199b3b958f42..33dad1da9310 100644
--- a/arch/arm/mach-shmobile/board-ag5evm.c
+++ b/arch/arm/mach-shmobile/board-ag5evm.c
@@ -253,8 +253,8 @@ static struct sh_mobile_lcdc_info lcdc0_info = {
253 .clock_divider = 1, 253 .clock_divider = 1,
254 .flags = LCDC_FLAGS_DWPOL, 254 .flags = LCDC_FLAGS_DWPOL,
255 .fourcc = V4L2_PIX_FMT_RGB565, 255 .fourcc = V4L2_PIX_FMT_RGB565,
256 .lcd_cfg = lcdc0_modes, 256 .lcd_modes = lcdc0_modes,
257 .num_cfg = ARRAY_SIZE(lcdc0_modes), 257 .num_modes = ARRAY_SIZE(lcdc0_modes),
258 .panel_cfg = { 258 .panel_cfg = {
259 .width = 44, 259 .width = 44,
260 .height = 79, 260 .height = 79,
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index 2cb6c39dd62a..80b943029815 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -593,8 +593,8 @@ static struct sh_mobile_lcdc_info lcdc_info = {
593 .ch[0] = { 593 .ch[0] = {
594 .chan = LCDC_CHAN_MAINLCD, 594 .chan = LCDC_CHAN_MAINLCD,
595 .fourcc = V4L2_PIX_FMT_RGB565, 595 .fourcc = V4L2_PIX_FMT_RGB565,
596 .lcd_cfg = ap4evb_lcdc_modes, 596 .lcd_modes = ap4evb_lcdc_modes,
597 .num_cfg = ARRAY_SIZE(ap4evb_lcdc_modes), 597 .num_modes = ARRAY_SIZE(ap4evb_lcdc_modes),
598 .meram_cfg = &lcd_meram_cfg, 598 .meram_cfg = &lcd_meram_cfg,
599#ifdef CONFIG_AP4EVB_QHD 599#ifdef CONFIG_AP4EVB_QHD
600 .tx_dev = &mipidsi0_device, 600 .tx_dev = &mipidsi0_device,
diff --git a/arch/arm/mach-shmobile/board-bonito.c b/arch/arm/mach-shmobile/board-bonito.c
index 9cd9408b851b..fb90f0898d9c 100644
--- a/arch/arm/mach-shmobile/board-bonito.c
+++ b/arch/arm/mach-shmobile/board-bonito.c
@@ -245,8 +245,8 @@ static struct sh_mobile_lcdc_info lcdc0_info = {
245 .interface_type = RGB24, 245 .interface_type = RGB24,
246 .clock_divider = 5, 246 .clock_divider = 5,
247 .flags = 0, 247 .flags = 0,
248 .lcd_cfg = &lcdc0_mode, 248 .lcd_modes = &lcdc0_mode,
249 .num_cfg = 1, 249 .num_modes = 1,
250 .panel_cfg = { 250 .panel_cfg = {
251 .width = 152, 251 .width = 152,
252 .height = 91, 252 .height = 91,
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index 9228cc555b46..aff7df8ccc30 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -384,8 +384,8 @@ static struct sh_mobile_lcdc_info lcdc_info = {
384 .ch[0] = { 384 .ch[0] = {
385 .chan = LCDC_CHAN_MAINLCD, 385 .chan = LCDC_CHAN_MAINLCD,
386 .fourcc = V4L2_PIX_FMT_RGB565, 386 .fourcc = V4L2_PIX_FMT_RGB565,
387 .lcd_cfg = mackerel_lcdc_modes, 387 .lcd_modes = mackerel_lcdc_modes,
388 .num_cfg = ARRAY_SIZE(mackerel_lcdc_modes), 388 .num_modes = ARRAY_SIZE(mackerel_lcdc_modes),
389 .interface_type = RGB24, 389 .interface_type = RGB24,
390 .clock_divider = 3, 390 .clock_divider = 3,
391 .flags = 0, 391 .flags = 0,
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c
index a87b7f42f120..8cf02e343333 100644
--- a/arch/sh/boards/mach-ap325rxa/setup.c
+++ b/arch/sh/boards/mach-ap325rxa/setup.c
@@ -211,8 +211,8 @@ static struct sh_mobile_lcdc_info lcdc_info = {
211 .fourcc = V4L2_PIX_FMT_RGB565, 211 .fourcc = V4L2_PIX_FMT_RGB565,
212 .interface_type = RGB18, 212 .interface_type = RGB18,
213 .clock_divider = 1, 213 .clock_divider = 1,
214 .lcd_cfg = ap325rxa_lcdc_modes, 214 .lcd_modes = ap325rxa_lcdc_modes,
215 .num_cfg = ARRAY_SIZE(ap325rxa_lcdc_modes), 215 .num_modes = ARRAY_SIZE(ap325rxa_lcdc_modes),
216 .panel_cfg = { 216 .panel_cfg = {
217 .width = 152, /* 7.0 inch */ 217 .width = 152, /* 7.0 inch */
218 .height = 91, 218 .height = 91,
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index 41767451ead1..0b08230546e7 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -1114,8 +1114,8 @@ static int __init arch_setup(void)
1114 /* DVI */ 1114 /* DVI */
1115 lcdc_info.clock_source = LCDC_CLK_EXTERNAL; 1115 lcdc_info.clock_source = LCDC_CLK_EXTERNAL;
1116 lcdc_info.ch[0].clock_divider = 1; 1116 lcdc_info.ch[0].clock_divider = 1;
1117 lcdc_info.ch[0].lcd_cfg = ecovec_dvi_modes; 1117 lcdc_info.ch[0].lcd_modes = ecovec_dvi_modes;
1118 lcdc_info.ch[0].num_cfg = ARRAY_SIZE(ecovec_dvi_modes); 1118 lcdc_info.ch[0].num_modes = ARRAY_SIZE(ecovec_dvi_modes);
1119 1119
1120 gpio_set_value(GPIO_PTA2, 1); 1120 gpio_set_value(GPIO_PTA2, 1);
1121 gpio_set_value(GPIO_PTU1, 1); 1121 gpio_set_value(GPIO_PTU1, 1);
@@ -1123,8 +1123,8 @@ static int __init arch_setup(void)
1123 /* Panel */ 1123 /* Panel */
1124 lcdc_info.clock_source = LCDC_CLK_PERIPHERAL; 1124 lcdc_info.clock_source = LCDC_CLK_PERIPHERAL;
1125 lcdc_info.ch[0].clock_divider = 2; 1125 lcdc_info.ch[0].clock_divider = 2;
1126 lcdc_info.ch[0].lcd_cfg = ecovec_lcd_modes; 1126 lcdc_info.ch[0].lcd_modes = ecovec_lcd_modes;
1127 lcdc_info.ch[0].num_cfg = ARRAY_SIZE(ecovec_lcd_modes); 1127 lcdc_info.ch[0].num_modes = ARRAY_SIZE(ecovec_lcd_modes);
1128 1128
1129 gpio_set_value(GPIO_PTR1, 1); 1129 gpio_set_value(GPIO_PTR1, 1);
1130 1130
diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c
index 77d5a60d64fd..d04a55d3b877 100644
--- a/arch/sh/boards/mach-kfr2r09/setup.c
+++ b/arch/sh/boards/mach-kfr2r09/setup.c
@@ -148,8 +148,8 @@ static struct sh_mobile_lcdc_info kfr2r09_sh_lcdc_info = {
148 .interface_type = SYS18, 148 .interface_type = SYS18,
149 .clock_divider = 6, 149 .clock_divider = 6,
150 .flags = LCDC_FLAGS_DWPOL, 150 .flags = LCDC_FLAGS_DWPOL,
151 .lcd_cfg = kfr2r09_lcdc_modes, 151 .lcd_modes = kfr2r09_lcdc_modes,
152 .num_cfg = ARRAY_SIZE(kfr2r09_lcdc_modes), 152 .num_modes = ARRAY_SIZE(kfr2r09_lcdc_modes),
153 .panel_cfg = { 153 .panel_cfg = {
154 .width = 35, 154 .width = 35,
155 .height = 58, 155 .height = 58,
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c
index 93a1c9109abc..ff6f69c6906e 100644
--- a/arch/sh/boards/mach-migor/setup.c
+++ b/arch/sh/boards/mach-migor/setup.c
@@ -246,8 +246,8 @@ static struct sh_mobile_lcdc_info sh_mobile_lcdc_info = {
246 .fourcc = V4L2_PIX_FMT_RGB565, 246 .fourcc = V4L2_PIX_FMT_RGB565,
247 .interface_type = RGB16, 247 .interface_type = RGB16,
248 .clock_divider = 2, 248 .clock_divider = 2,
249 .lcd_cfg = migor_lcd_modes, 249 .lcd_modes = migor_lcd_modes,
250 .num_cfg = ARRAY_SIZE(migor_lcd_modes), 250 .num_modes = ARRAY_SIZE(migor_lcd_modes),
251 .panel_cfg = { /* 7.0 inch */ 251 .panel_cfg = { /* 7.0 inch */
252 .width = 152, 252 .width = 152,
253 .height = 91, 253 .height = 91,
@@ -260,8 +260,8 @@ static struct sh_mobile_lcdc_info sh_mobile_lcdc_info = {
260 .fourcc = V4L2_PIX_FMT_RGB565, 260 .fourcc = V4L2_PIX_FMT_RGB565,
261 .interface_type = SYS16A, 261 .interface_type = SYS16A,
262 .clock_divider = 10, 262 .clock_divider = 10,
263 .lcd_cfg = migor_lcd_modes, 263 .lcd_modes = migor_lcd_modes,
264 .num_cfg = ARRAY_SIZE(migor_lcd_modes), 264 .num_modes = ARRAY_SIZE(migor_lcd_modes),
265 .panel_cfg = { 265 .panel_cfg = {
266 .width = 49, /* 2.4 inch */ 266 .width = 49, /* 2.4 inch */
267 .height = 37, 267 .height = 37,
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index a468398bfb34..9bf528b4ae21 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -886,12 +886,12 @@ static int __init devices_setup(void)
886 886
887 if (sw & SW41_B) { 887 if (sw & SW41_B) {
888 /* 720p */ 888 /* 720p */
889 lcdc_info.ch[0].lcd_cfg = lcdc_720p_modes; 889 lcdc_info.ch[0].lcd_modes = lcdc_720p_modes;
890 lcdc_info.ch[0].num_cfg = ARRAY_SIZE(lcdc_720p_modes); 890 lcdc_info.ch[0].num_modes = ARRAY_SIZE(lcdc_720p_modes);
891 } else { 891 } else {
892 /* VGA */ 892 /* VGA */
893 lcdc_info.ch[0].lcd_cfg = lcdc_vga_modes; 893 lcdc_info.ch[0].lcd_modes = lcdc_vga_modes;
894 lcdc_info.ch[0].num_cfg = ARRAY_SIZE(lcdc_vga_modes); 894 lcdc_info.ch[0].num_modes = ARRAY_SIZE(lcdc_vga_modes);
895 } 895 }
896 896
897 if (sw & SW41_A) { 897 if (sw & SW41_A) {