diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-07-26 02:54:26 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-09-12 04:57:10 -0400 |
commit | 7852ec0536ca39cefffc6301dc77f8ae55592926 (patch) | |
tree | faa867a05d6571d5027b3fbfdf452678b3d35d38 /arch/arm/mach-omap2/powerdomain.c | |
parent | a032d33b65c89a781c871fd1def595fa6a69b52a (diff) |
ARM: OMAP: unwrap strings
Find and unwrap wrapped strings in the style:
pr_debug("clockdomain: hardware cannot set/clear wake up of "
"%s when %s wakes up\n", clkdm1->name, clkdm2->name);
Keeping these strings contiguous seems to be the current Linux kernel
policy.
The offending lines were found with the following command:
pcregrep -rnM '"\s*$\s*"' arch/arm/*omap*
While here, some messages have been clarified, some pr_warning(
... calls have been converted to pr_warn( ..., and some printk(KERN_*
... have been converted to pr_*.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/powerdomain.c')
-rw-r--r-- | arch/arm/mach-omap2/powerdomain.c | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c index 69b36e185e9b..153cfe0ed158 100644 --- a/arch/arm/mach-omap2/powerdomain.c +++ b/arch/arm/mach-omap2/powerdomain.c | |||
@@ -339,8 +339,8 @@ int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm) | |||
339 | if (!pwrdm || !clkdm) | 339 | if (!pwrdm || !clkdm) |
340 | return -EINVAL; | 340 | return -EINVAL; |
341 | 341 | ||
342 | pr_debug("powerdomain: associating clockdomain %s with powerdomain " | 342 | pr_debug("powerdomain: %s: associating clockdomain %s\n", |
343 | "%s\n", clkdm->name, pwrdm->name); | 343 | pwrdm->name, clkdm->name); |
344 | 344 | ||
345 | for (i = 0; i < PWRDM_MAX_CLKDMS; i++) { | 345 | for (i = 0; i < PWRDM_MAX_CLKDMS; i++) { |
346 | if (!pwrdm->pwrdm_clkdms[i]) | 346 | if (!pwrdm->pwrdm_clkdms[i]) |
@@ -354,8 +354,8 @@ int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm) | |||
354 | } | 354 | } |
355 | 355 | ||
356 | if (i == PWRDM_MAX_CLKDMS) { | 356 | if (i == PWRDM_MAX_CLKDMS) { |
357 | pr_debug("powerdomain: increase PWRDM_MAX_CLKDMS for " | 357 | pr_debug("powerdomain: %s: increase PWRDM_MAX_CLKDMS for clkdm %s\n", |
358 | "pwrdm %s clkdm %s\n", pwrdm->name, clkdm->name); | 358 | pwrdm->name, clkdm->name); |
359 | WARN_ON(1); | 359 | WARN_ON(1); |
360 | ret = -ENOMEM; | 360 | ret = -ENOMEM; |
361 | goto pac_exit; | 361 | goto pac_exit; |
@@ -387,16 +387,16 @@ int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm) | |||
387 | if (!pwrdm || !clkdm) | 387 | if (!pwrdm || !clkdm) |
388 | return -EINVAL; | 388 | return -EINVAL; |
389 | 389 | ||
390 | pr_debug("powerdomain: dissociating clockdomain %s from powerdomain " | 390 | pr_debug("powerdomain: %s: dissociating clockdomain %s\n", |
391 | "%s\n", clkdm->name, pwrdm->name); | 391 | pwrdm->name, clkdm->name); |
392 | 392 | ||
393 | for (i = 0; i < PWRDM_MAX_CLKDMS; i++) | 393 | for (i = 0; i < PWRDM_MAX_CLKDMS; i++) |
394 | if (pwrdm->pwrdm_clkdms[i] == clkdm) | 394 | if (pwrdm->pwrdm_clkdms[i] == clkdm) |
395 | break; | 395 | break; |
396 | 396 | ||
397 | if (i == PWRDM_MAX_CLKDMS) { | 397 | if (i == PWRDM_MAX_CLKDMS) { |
398 | pr_debug("powerdomain: clkdm %s not associated with pwrdm " | 398 | pr_debug("powerdomain: %s: clkdm %s not associated?!\n", |
399 | "%s ?!\n", clkdm->name, pwrdm->name); | 399 | pwrdm->name, clkdm->name); |
400 | ret = -ENOENT; | 400 | ret = -ENOENT; |
401 | goto pdc_exit; | 401 | goto pdc_exit; |
402 | } | 402 | } |
@@ -485,7 +485,7 @@ int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) | |||
485 | if (!(pwrdm->pwrsts & (1 << pwrst))) | 485 | if (!(pwrdm->pwrsts & (1 << pwrst))) |
486 | return -EINVAL; | 486 | return -EINVAL; |
487 | 487 | ||
488 | pr_debug("powerdomain: setting next powerstate for %s to %0x\n", | 488 | pr_debug("powerdomain: %s: setting next powerstate to %0x\n", |
489 | pwrdm->name, pwrst); | 489 | pwrdm->name, pwrst); |
490 | 490 | ||
491 | if (arch_pwrdm && arch_pwrdm->pwrdm_set_next_pwrst) { | 491 | if (arch_pwrdm && arch_pwrdm->pwrdm_set_next_pwrst) { |
@@ -587,7 +587,7 @@ int pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) | |||
587 | if (!(pwrdm->pwrsts_logic_ret & (1 << pwrst))) | 587 | if (!(pwrdm->pwrsts_logic_ret & (1 << pwrst))) |
588 | return -EINVAL; | 588 | return -EINVAL; |
589 | 589 | ||
590 | pr_debug("powerdomain: setting next logic powerstate for %s to %0x\n", | 590 | pr_debug("powerdomain: %s: setting next logic powerstate to %0x\n", |
591 | pwrdm->name, pwrst); | 591 | pwrdm->name, pwrst); |
592 | 592 | ||
593 | if (arch_pwrdm && arch_pwrdm->pwrdm_set_logic_retst) | 593 | if (arch_pwrdm && arch_pwrdm->pwrdm_set_logic_retst) |
@@ -624,8 +624,8 @@ int pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, u8 pwrst) | |||
624 | if (!(pwrdm->pwrsts_mem_on[bank] & (1 << pwrst))) | 624 | if (!(pwrdm->pwrsts_mem_on[bank] & (1 << pwrst))) |
625 | return -EINVAL; | 625 | return -EINVAL; |
626 | 626 | ||
627 | pr_debug("powerdomain: setting next memory powerstate for domain %s " | 627 | pr_debug("powerdomain: %s: setting next memory powerstate for bank %0x while pwrdm-ON to %0x\n", |
628 | "bank %0x while pwrdm-ON to %0x\n", pwrdm->name, bank, pwrst); | 628 | pwrdm->name, bank, pwrst); |
629 | 629 | ||
630 | if (arch_pwrdm && arch_pwrdm->pwrdm_set_mem_onst) | 630 | if (arch_pwrdm && arch_pwrdm->pwrdm_set_mem_onst) |
631 | ret = arch_pwrdm->pwrdm_set_mem_onst(pwrdm, bank, pwrst); | 631 | ret = arch_pwrdm->pwrdm_set_mem_onst(pwrdm, bank, pwrst); |
@@ -662,8 +662,8 @@ int pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, u8 pwrst) | |||
662 | if (!(pwrdm->pwrsts_mem_ret[bank] & (1 << pwrst))) | 662 | if (!(pwrdm->pwrsts_mem_ret[bank] & (1 << pwrst))) |
663 | return -EINVAL; | 663 | return -EINVAL; |
664 | 664 | ||
665 | pr_debug("powerdomain: setting next memory powerstate for domain %s " | 665 | pr_debug("powerdomain: %s: setting next memory powerstate for bank %0x while pwrdm-RET to %0x\n", |
666 | "bank %0x while pwrdm-RET to %0x\n", pwrdm->name, bank, pwrst); | 666 | pwrdm->name, bank, pwrst); |
667 | 667 | ||
668 | if (arch_pwrdm && arch_pwrdm->pwrdm_set_mem_retst) | 668 | if (arch_pwrdm && arch_pwrdm->pwrdm_set_mem_retst) |
669 | ret = arch_pwrdm->pwrdm_set_mem_retst(pwrdm, bank, pwrst); | 669 | ret = arch_pwrdm->pwrdm_set_mem_retst(pwrdm, bank, pwrst); |
@@ -841,7 +841,7 @@ int pwrdm_clear_all_prev_pwrst(struct powerdomain *pwrdm) | |||
841 | * warn & fail if it is not ON. | 841 | * warn & fail if it is not ON. |
842 | */ | 842 | */ |
843 | 843 | ||
844 | pr_debug("powerdomain: clearing previous power state reg for %s\n", | 844 | pr_debug("powerdomain: %s: clearing previous power state reg\n", |
845 | pwrdm->name); | 845 | pwrdm->name); |
846 | 846 | ||
847 | if (arch_pwrdm && arch_pwrdm->pwrdm_clear_all_prev_pwrst) | 847 | if (arch_pwrdm && arch_pwrdm->pwrdm_clear_all_prev_pwrst) |
@@ -871,8 +871,7 @@ int pwrdm_enable_hdwr_sar(struct powerdomain *pwrdm) | |||
871 | if (!(pwrdm->flags & PWRDM_HAS_HDWR_SAR)) | 871 | if (!(pwrdm->flags & PWRDM_HAS_HDWR_SAR)) |
872 | return ret; | 872 | return ret; |
873 | 873 | ||
874 | pr_debug("powerdomain: %s: setting SAVEANDRESTORE bit\n", | 874 | pr_debug("powerdomain: %s: setting SAVEANDRESTORE bit\n", pwrdm->name); |
875 | pwrdm->name); | ||
876 | 875 | ||
877 | if (arch_pwrdm && arch_pwrdm->pwrdm_enable_hdwr_sar) | 876 | if (arch_pwrdm && arch_pwrdm->pwrdm_enable_hdwr_sar) |
878 | ret = arch_pwrdm->pwrdm_enable_hdwr_sar(pwrdm); | 877 | ret = arch_pwrdm->pwrdm_enable_hdwr_sar(pwrdm); |
@@ -901,8 +900,7 @@ int pwrdm_disable_hdwr_sar(struct powerdomain *pwrdm) | |||
901 | if (!(pwrdm->flags & PWRDM_HAS_HDWR_SAR)) | 900 | if (!(pwrdm->flags & PWRDM_HAS_HDWR_SAR)) |
902 | return ret; | 901 | return ret; |
903 | 902 | ||
904 | pr_debug("powerdomain: %s: clearing SAVEANDRESTORE bit\n", | 903 | pr_debug("powerdomain: %s: clearing SAVEANDRESTORE bit\n", pwrdm->name); |
905 | pwrdm->name); | ||
906 | 904 | ||
907 | if (arch_pwrdm && arch_pwrdm->pwrdm_disable_hdwr_sar) | 905 | if (arch_pwrdm && arch_pwrdm->pwrdm_disable_hdwr_sar) |
908 | ret = arch_pwrdm->pwrdm_disable_hdwr_sar(pwrdm); | 906 | ret = arch_pwrdm->pwrdm_disable_hdwr_sar(pwrdm); |