]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pwm: tiecap: Staticize non-exported symbols
authorAxel Lin <axel.lin@ingics.com>
Tue, 26 Mar 2013 14:54:58 +0000 (22:54 +0800)
committerThierry Reding <thierry.reding@avionic-design.de>
Tue, 26 Mar 2013 15:04:03 +0000 (16:04 +0100)
Both ecap_pwm_save_context() and ecap_pwm_restore_context() are only used in
this file, make them static.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/pwm/pwm-tiecap.c

index f024db06e6c4091f8171fb134dc82857d2bf6120..0d65fb2e02c7897348862bebe2ac27be8449c432 100644 (file)
@@ -295,7 +295,7 @@ static int ecap_pwm_remove(struct platform_device *pdev)
        return pwmchip_remove(&pc->chip);
 }
 
-void ecap_pwm_save_context(struct ecap_pwm_chip *pc)
+static void ecap_pwm_save_context(struct ecap_pwm_chip *pc)
 {
        pm_runtime_get_sync(pc->chip.dev);
        pc->ctx.ecctl2 = readw(pc->mmio_base + ECCTL2);
@@ -304,7 +304,7 @@ void ecap_pwm_save_context(struct ecap_pwm_chip *pc)
        pm_runtime_put_sync(pc->chip.dev);
 }
 
-void ecap_pwm_restore_context(struct ecap_pwm_chip *pc)
+static void ecap_pwm_restore_context(struct ecap_pwm_chip *pc)
 {
        writel(pc->ctx.cap3, pc->mmio_base + CAP3);
        writel(pc->ctx.cap4, pc->mmio_base + CAP4);