aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c64xx
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2009-12-07 20:26:07 -0500
committerBen Dooks <ben-linux@fluff.org>2010-01-15 03:10:10 -0500
commitf3e0b724cc70ef5ee2a6e0d9dfafa2328c294ab3 (patch)
tree06112cb56cc4916e2fa8a128ee7d60277806e5fe /arch/arm/plat-s3c64xx
parentb3bf41be06634d69959a68a2b53e1ffc92f0d103 (diff)
ARM: S3C64XX: Fixup .reg_src and .reg_div with named initialisers
Change these two fields to have named initialisers as per the review comments from Kyungmin Park. sed used: s@\.reg_src\(.*\)=\(.*\){\(.*\),\(.*\),\(.*\)}@.reg_src\1=\2{ .reg =\3, .shift =\4, .size =\5 }@g s@\.reg_div\(.*\)=\(.*\){\(.*\),\(.*\),\(.*\)}@.reg_div\1=\2{ .reg =\3, .shift =\4, .size =\5 }@g Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c64xx')
-rw-r--r--arch/arm/plat-s3c64xx/s3c6400-clock.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/arch/arm/plat-s3c64xx/s3c6400-clock.c b/arch/arm/plat-s3c64xx/s3c6400-clock.c
index f85406a11385..555d1aa6b5ac 100644
--- a/arch/arm/plat-s3c64xx/s3c6400-clock.c
+++ b/arch/arm/plat-s3c64xx/s3c6400-clock.c
@@ -69,7 +69,7 @@ static struct clksrc_clk clk_mout_apll = {
69 .name = "mout_apll", 69 .name = "mout_apll",
70 .id = -1, 70 .id = -1,
71 }, 71 },
72 .reg_src = { S3C_CLK_SRC, 0, 1 }, 72 .reg_src = { .reg = S3C_CLK_SRC, .shift = 0, .size = 1 },
73 .sources = &clk_src_apll, 73 .sources = &clk_src_apll,
74}; 74};
75 75
@@ -88,7 +88,7 @@ static struct clksrc_clk clk_mout_epll = {
88 .name = "mout_epll", 88 .name = "mout_epll",
89 .id = -1, 89 .id = -1,
90 }, 90 },
91 .reg_src = { S3C_CLK_SRC, 2, 1 }, 91 .reg_src = { .reg = S3C_CLK_SRC, .shift = 2, .size = 1 },
92 .sources = &clk_src_epll, 92 .sources = &clk_src_epll,
93}; 93};
94 94
@@ -107,7 +107,7 @@ static struct clksrc_clk clk_mout_mpll = {
107 .name = "mout_mpll", 107 .name = "mout_mpll",
108 .id = -1, 108 .id = -1,
109 }, 109 },
110 .reg_src = { S3C_CLK_SRC, 1, 1 }, 110 .reg_src = { .reg = S3C_CLK_SRC, .shift = 1, .size = 1 },
111 .sources = &clk_src_mpll, 111 .sources = &clk_src_mpll,
112}; 112};
113 113
@@ -313,8 +313,8 @@ static struct clksrc_clk clksrcs[] = {
313 .ctrlbit = S3C_CLKCON_SCLK_MMC0, 313 .ctrlbit = S3C_CLKCON_SCLK_MMC0,
314 .enable = s3c64xx_sclk_ctrl, 314 .enable = s3c64xx_sclk_ctrl,
315 }, 315 },
316 .reg_src = { S3C_CLK_SRC, 18, 2 }, 316 .reg_src = { .reg = S3C_CLK_SRC, .shift = 18, .size = 2 },
317 .reg_div = { S3C_CLK_DIV1, 0, 4 }, 317 .reg_div = { .reg = S3C_CLK_DIV1, .shift = 0, .size = 4 },
318 .sources = &clkset_spi_mmc, 318 .sources = &clkset_spi_mmc,
319 }, { 319 }, {
320 .clk = { 320 .clk = {
@@ -323,8 +323,8 @@ static struct clksrc_clk clksrcs[] = {
323 .ctrlbit = S3C_CLKCON_SCLK_MMC1, 323 .ctrlbit = S3C_CLKCON_SCLK_MMC1,
324 .enable = s3c64xx_sclk_ctrl, 324 .enable = s3c64xx_sclk_ctrl,
325 }, 325 },
326 .reg_src = { S3C_CLK_SRC, 20, 2 }, 326 .reg_src = { .reg = S3C_CLK_SRC, .shift = 20, .size = 2 },
327 .reg_div = { S3C_CLK_DIV1, 4, 4 }, 327 .reg_div = { .reg = S3C_CLK_DIV1, .shift = 4, .size = 4 },
328 .sources = &clkset_spi_mmc, 328 .sources = &clkset_spi_mmc,
329 }, { 329 }, {
330 .clk = { 330 .clk = {
@@ -333,8 +333,8 @@ static struct clksrc_clk clksrcs[] = {
333 .ctrlbit = S3C_CLKCON_SCLK_MMC2, 333 .ctrlbit = S3C_CLKCON_SCLK_MMC2,
334 .enable = s3c64xx_sclk_ctrl, 334 .enable = s3c64xx_sclk_ctrl,
335 }, 335 },
336 .reg_src = { S3C_CLK_SRC, 22, 2 }, 336 .reg_src = { .reg = S3C_CLK_SRC, .shift = 22, .size = 2 },
337 .reg_div = { S3C_CLK_DIV1, 8, 4 }, 337 .reg_div = { .reg = S3C_CLK_DIV1, .shift = 8, .size = 4 },
338 .sources = &clkset_spi_mmc, 338 .sources = &clkset_spi_mmc,
339 }, { 339 }, {
340 .clk = { 340 .clk = {
@@ -343,8 +343,8 @@ static struct clksrc_clk clksrcs[] = {
343 .ctrlbit = S3C_CLKCON_SCLK_UHOST, 343 .ctrlbit = S3C_CLKCON_SCLK_UHOST,
344 .enable = s3c64xx_sclk_ctrl, 344 .enable = s3c64xx_sclk_ctrl,
345 }, 345 },
346 .reg_src = { S3C_CLK_SRC, 5, 2 }, 346 .reg_src = { .reg = S3C_CLK_SRC, .shift = 5, .size = 2 },
347 .reg_div = { S3C_CLK_DIV1, 20, 4 }, 347 .reg_div = { .reg = S3C_CLK_DIV1, .shift = 20, .size = 4 },
348 .sources = &clkset_uhost, 348 .sources = &clkset_uhost,
349 }, { 349 }, {
350 .clk = { 350 .clk = {
@@ -353,8 +353,8 @@ static struct clksrc_clk clksrcs[] = {
353 .ctrlbit = S3C_CLKCON_SCLK_UART, 353 .ctrlbit = S3C_CLKCON_SCLK_UART,
354 .enable = s3c64xx_sclk_ctrl, 354 .enable = s3c64xx_sclk_ctrl,
355 }, 355 },
356 .reg_src = { S3C_CLK_SRC, 13, 1 }, 356 .reg_src = { .reg = S3C_CLK_SRC, .shift = 13, .size = 1 },
357 .reg_div = { S3C_CLK_DIV2, 16, 4 }, 357 .reg_div = { .reg = S3C_CLK_DIV2, .shift = 16, .size = 4 },
358 .sources = &clkset_uart, 358 .sources = &clkset_uart,
359 }, { 359 }, {
360/* Where does UCLK0 come from? */ 360/* Where does UCLK0 come from? */
@@ -364,8 +364,8 @@ static struct clksrc_clk clksrcs[] = {
364 .ctrlbit = S3C_CLKCON_SCLK_SPI0, 364 .ctrlbit = S3C_CLKCON_SCLK_SPI0,
365 .enable = s3c64xx_sclk_ctrl, 365 .enable = s3c64xx_sclk_ctrl,
366 }, 366 },
367 .reg_src = { S3C_CLK_SRC, 14, 2 }, 367 .reg_src = { .reg = S3C_CLK_SRC, .shift = 14, .size = 2 },
368 .reg_div = { S3C_CLK_DIV2, 0, 4 }, 368 .reg_div = { .reg = S3C_CLK_DIV2, .shift = 0, .size = 4 },
369 .sources = &clkset_spi_mmc, 369 .sources = &clkset_spi_mmc,
370 }, { 370 }, {
371 .clk = { 371 .clk = {
@@ -374,8 +374,8 @@ static struct clksrc_clk clksrcs[] = {
374 .ctrlbit = S3C_CLKCON_SCLK_SPI1, 374 .ctrlbit = S3C_CLKCON_SCLK_SPI1,
375 .enable = s3c64xx_sclk_ctrl, 375 .enable = s3c64xx_sclk_ctrl,
376 }, 376 },
377 .reg_src = { S3C_CLK_SRC, 16, 2 }, 377 .reg_src = { .reg = S3C_CLK_SRC, .shift = 16, .size = 2 },
378 .reg_div = { S3C_CLK_DIV2, 4, 4 }, 378 .reg_div = { .reg = S3C_CLK_DIV2, .shift = 4, .size = 4 },
379 .sources = &clkset_spi_mmc, 379 .sources = &clkset_spi_mmc,
380 }, { 380 }, {
381 .clk = { 381 .clk = {
@@ -384,8 +384,8 @@ static struct clksrc_clk clksrcs[] = {
384 .ctrlbit = S3C_CLKCON_SCLK_AUDIO0, 384 .ctrlbit = S3C_CLKCON_SCLK_AUDIO0,
385 .enable = s3c64xx_sclk_ctrl, 385 .enable = s3c64xx_sclk_ctrl,
386 }, 386 },
387 .reg_src = { S3C_CLK_SRC, 7, 3 }, 387 .reg_src = { .reg = S3C_CLK_SRC, .shift = 7, .size = 3 },
388 .reg_div = { S3C_CLK_DIV2, 8, 4 }, 388 .reg_div = { .reg = S3C_CLK_DIV2, .shift = 8, .size = 4 },
389 .sources = &clkset_audio0, 389 .sources = &clkset_audio0,
390 }, { 390 }, {
391 .clk = { 391 .clk = {
@@ -394,8 +394,8 @@ static struct clksrc_clk clksrcs[] = {
394 .ctrlbit = S3C_CLKCON_SCLK_AUDIO1, 394 .ctrlbit = S3C_CLKCON_SCLK_AUDIO1,
395 .enable = s3c64xx_sclk_ctrl, 395 .enable = s3c64xx_sclk_ctrl,
396 }, 396 },
397 .reg_src = { S3C_CLK_SRC, 10, 3 }, 397 .reg_src = { .reg = S3C_CLK_SRC, .shift = 10, .size = 3 },
398 .reg_div = { S3C_CLK_DIV2, 12, 4 }, 398 .reg_div = { .reg = S3C_CLK_DIV2, .shift = 12, .size = 4 },
399 .sources = &clkset_audio1, 399 .sources = &clkset_audio1,
400 }, { 400 }, {
401 .clk = { 401 .clk = {
@@ -404,8 +404,8 @@ static struct clksrc_clk clksrcs[] = {
404 .ctrlbit = S3C_CLKCON_SCLK_IRDA, 404 .ctrlbit = S3C_CLKCON_SCLK_IRDA,
405 .enable = s3c64xx_sclk_ctrl, 405 .enable = s3c64xx_sclk_ctrl,
406 }, 406 },
407 .reg_src = { S3C_CLK_SRC, 24, 2 }, 407 .reg_src = { .reg = S3C_CLK_SRC, .shift = 24, .size = 2 },
408 .reg_div = { S3C_CLK_DIV2, 20, 4 }, 408 .reg_div = { .reg = S3C_CLK_DIV2, .shift = 20, .size = 4 },
409 .sources = &clkset_irda, 409 .sources = &clkset_irda,
410 }, { 410 }, {
411 .clk = { 411 .clk = {
@@ -414,8 +414,8 @@ static struct clksrc_clk clksrcs[] = {
414 .ctrlbit = S3C_CLKCON_SCLK_CAM, 414 .ctrlbit = S3C_CLKCON_SCLK_CAM,
415 .enable = s3c64xx_sclk_ctrl, 415 .enable = s3c64xx_sclk_ctrl,
416 }, 416 },
417 .reg_div = { S3C_CLK_DIV0, 20, 4 }, 417 .reg_div = { .reg = S3C_CLK_DIV0, .shift = 20, .size = 4 },
418 .reg_src = { NULL, 0, 0 }, 418 .reg_src = { .reg = NULL, .shift = 0, .size = 0 },
419 .sources = &clkset_camif, 419 .sources = &clkset_camif,
420 }, 420 },
421}; 421};