public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] pwm: tiecap: Staticize non-exported symbols
@ 2013-03-26 14:54 Axel Lin
  2013-03-26 14:55 ` [PATCH 2/2] pwm: tiehrpwm: " Axel Lin
  2013-03-26 15:24 ` [PATCH 1/2] pwm: tiecap: " Thierry Reding
  0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2013-03-26 14:54 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Philip Avinash, linux-kernel

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>
---
 drivers/pwm/pwm-tiecap.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c
index f024db0..0d65fb2 100644
--- a/drivers/pwm/pwm-tiecap.c
+++ b/drivers/pwm/pwm-tiecap.c
@@ -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);
-- 
1.7.10.4




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] pwm: tiehrpwm: Staticize non-exported symbols
  2013-03-26 14:54 [PATCH 1/2] pwm: tiecap: Staticize non-exported symbols Axel Lin
@ 2013-03-26 14:55 ` Axel Lin
  2013-03-26 15:24   ` Thierry Reding
  2013-03-26 15:24 ` [PATCH 1/2] pwm: tiecap: " Thierry Reding
  1 sibling, 1 reply; 4+ messages in thread
From: Axel Lin @ 2013-03-26 14:55 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Philip Avinash, linux-kernel

Both ehrpwm_pwm_save_context() and ehrpwm_pwm_restore_context() are only used in
this file, make them static.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/pwm/pwm-tiehrpwm.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c
index d058ba9..6a21759 100644
--- a/drivers/pwm/pwm-tiehrpwm.c
+++ b/drivers/pwm/pwm-tiehrpwm.c
@@ -533,7 +533,7 @@ static int ehrpwm_pwm_remove(struct platform_device *pdev)
 	return pwmchip_remove(&pc->chip);
 }
 
-void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc)
+static void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc)
 {
 	pm_runtime_get_sync(pc->chip.dev);
 	pc->ctx.tbctl = ehrpwm_read(pc->mmio_base, TBCTL);
@@ -547,7 +547,7 @@ void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc)
 	pm_runtime_put_sync(pc->chip.dev);
 }
 
-void ehrpwm_pwm_restore_context(struct ehrpwm_pwm_chip *pc)
+static void ehrpwm_pwm_restore_context(struct ehrpwm_pwm_chip *pc)
 {
 	ehrpwm_write(pc->mmio_base, TBPRD, pc->ctx.tbprd);
 	ehrpwm_write(pc->mmio_base, CMPA, pc->ctx.cmpa);
-- 
1.7.10.4




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] pwm: tiecap: Staticize non-exported symbols
  2013-03-26 14:54 [PATCH 1/2] pwm: tiecap: Staticize non-exported symbols Axel Lin
  2013-03-26 14:55 ` [PATCH 2/2] pwm: tiehrpwm: " Axel Lin
@ 2013-03-26 15:24 ` Thierry Reding
  1 sibling, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2013-03-26 15:24 UTC (permalink / raw)
  To: Axel Lin; +Cc: Philip Avinash, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

On Tue, Mar 26, 2013 at 10:54:58PM +0800, Axel Lin wrote:
> 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>

Applied, thanks.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] pwm: tiehrpwm: Staticize non-exported symbols
  2013-03-26 14:55 ` [PATCH 2/2] pwm: tiehrpwm: " Axel Lin
@ 2013-03-26 15:24   ` Thierry Reding
  0 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2013-03-26 15:24 UTC (permalink / raw)
  To: Axel Lin; +Cc: Philip Avinash, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

On Tue, Mar 26, 2013 at 10:55:57PM +0800, Axel Lin wrote:
> Both ehrpwm_pwm_save_context() and ehrpwm_pwm_restore_context() are only used in
> this file, make them static.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Applied, thanks.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-26 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26 14:54 [PATCH 1/2] pwm: tiecap: Staticize non-exported symbols Axel Lin
2013-03-26 14:55 ` [PATCH 2/2] pwm: tiehrpwm: " Axel Lin
2013-03-26 15:24   ` Thierry Reding
2013-03-26 15:24 ` [PATCH 1/2] pwm: tiecap: " Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox