All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] regulator: dbx500: remove unused functions in dbx500-prcmu.c
@ 2016-09-23 12:47 Baoyou Xie
  2016-09-23 13:43 ` Arnd Bergmann
  2016-09-26 16:43 ` Applied "regulator: dbx500: remove unused functions in dbx500-prcmu.c" to the regulator tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Baoyou Xie @ 2016-09-23 12:47 UTC (permalink / raw)
  To: lgirdwood, broonie; +Cc: linux-kernel, arnd, baoyou.xie, xie.baoyou

We get 2 warnings when building kernel with W=1:
drivers/regulator/dbx500-prcmu.c:78:6: warning: no previous prototype for 'ux500_regulator_suspend_debug' [-Wmissing-prototypes]
drivers/regulator/dbx500-prcmu.c:87:6: warning: no previous prototype for 'ux500_regulator_resume_debug' [-Wmissing-prototypes]

In fact, these functions are unused in
dbx500-prcmu.c, but should be removed.

So this patch removes the unused functions.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
---
 drivers/regulator/dbx500-prcmu.c | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c
index 3963dfa..8976141 100644
--- a/drivers/regulator/dbx500-prcmu.c
+++ b/drivers/regulator/dbx500-prcmu.c
@@ -75,24 +75,6 @@ static struct ux500_regulator_debug {
 	u8 *state_after_suspend;
 } rdebug;
 
-void ux500_regulator_suspend_debug(void)
-{
-	int i;
-
-	for (i = 0; i < rdebug.num_regulators; i++)
-		rdebug.state_before_suspend[i] =
-			rdebug.regulator_array[i].is_enabled;
-}
-
-void ux500_regulator_resume_debug(void)
-{
-	int i;
-
-	for (i = 0; i < rdebug.num_regulators; i++)
-		rdebug.state_after_suspend[i] =
-			rdebug.regulator_array[i].is_enabled;
-}
-
 static int ux500_regulator_power_state_cnt_print(struct seq_file *s, void *p)
 {
 	/* print power state count */
-- 
2.7.4

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

* Re: [PATCH 1/2] regulator: dbx500: remove unused functions in dbx500-prcmu.c
  2016-09-23 12:47 [PATCH 1/2] regulator: dbx500: remove unused functions in dbx500-prcmu.c Baoyou Xie
@ 2016-09-23 13:43 ` Arnd Bergmann
  2016-09-26 16:43 ` Applied "regulator: dbx500: remove unused functions in dbx500-prcmu.c" to the regulator tree Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2016-09-23 13:43 UTC (permalink / raw)
  To: Baoyou Xie; +Cc: lgirdwood, broonie, linux-kernel, xie.baoyou

On Friday, September 23, 2016 8:47:22 PM CEST Baoyou Xie wrote:
> We get 2 warnings when building kernel with W=1:
> drivers/regulator/dbx500-prcmu.c:78:6: warning: no previous prototype for 'ux500_regulator_suspend_debug' [-Wmissing-prototypes]
> drivers/regulator/dbx500-prcmu.c:87:6: warning: no previous prototype for 'ux500_regulator_resume_debug' [-Wmissing-prototypes]
> 
> In fact, these functions are unused in
> dbx500-prcmu.c, but should be removed.
> 
> So this patch removes the unused functions.
> 
> Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
> 

Good catch,

Acked-by: Arnd Bergmann <arnd@arndb.de>

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

* Applied "regulator: dbx500: remove unused functions in dbx500-prcmu.c" to the regulator tree
  2016-09-23 12:47 [PATCH 1/2] regulator: dbx500: remove unused functions in dbx500-prcmu.c Baoyou Xie
  2016-09-23 13:43 ` Arnd Bergmann
@ 2016-09-26 16:43 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2016-09-26 16:43 UTC (permalink / raw)
  To: Baoyou Xie
  Cc: Arnd Bergmann, Mark Brown, lgirdwood, broonie, linux-kernel,
	arnd, baoyou.xie, xie.baoyou, linux-kernel

The patch

   regulator: dbx500: remove unused functions in dbx500-prcmu.c

has been applied to the regulator tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 5258beedc30a72b0c21521aa531ed26ad45cb3f7 Mon Sep 17 00:00:00 2001
From: Baoyou Xie <baoyou.xie@linaro.org>
Date: Fri, 23 Sep 2016 20:47:22 +0800
Subject: [PATCH] regulator: dbx500: remove unused functions in dbx500-prcmu.c

We get 2 warnings when building kernel with W=1:
drivers/regulator/dbx500-prcmu.c:78:6: warning: no previous prototype for 'ux500_regulator_suspend_debug' [-Wmissing-prototypes]
drivers/regulator/dbx500-prcmu.c:87:6: warning: no previous prototype for 'ux500_regulator_resume_debug' [-Wmissing-prototypes]

In fact, these functions are unused in
dbx500-prcmu.c, but should be removed.

So this patch removes the unused functions.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/regulator/dbx500-prcmu.c | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c
index 3963dfad766c..8976141c1438 100644
--- a/drivers/regulator/dbx500-prcmu.c
+++ b/drivers/regulator/dbx500-prcmu.c
@@ -75,24 +75,6 @@ static struct ux500_regulator_debug {
 	u8 *state_after_suspend;
 } rdebug;
 
-void ux500_regulator_suspend_debug(void)
-{
-	int i;
-
-	for (i = 0; i < rdebug.num_regulators; i++)
-		rdebug.state_before_suspend[i] =
-			rdebug.regulator_array[i].is_enabled;
-}
-
-void ux500_regulator_resume_debug(void)
-{
-	int i;
-
-	for (i = 0; i < rdebug.num_regulators; i++)
-		rdebug.state_after_suspend[i] =
-			rdebug.regulator_array[i].is_enabled;
-}
-
 static int ux500_regulator_power_state_cnt_print(struct seq_file *s, void *p)
 {
 	/* print power state count */
-- 
2.9.3

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

end of thread, other threads:[~2016-09-26 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-23 12:47 [PATCH 1/2] regulator: dbx500: remove unused functions in dbx500-prcmu.c Baoyou Xie
2016-09-23 13:43 ` Arnd Bergmann
2016-09-26 16:43 ` Applied "regulator: dbx500: remove unused functions in dbx500-prcmu.c" to the regulator tree Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.