All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: max77686: Make max77686_enable() static.
@ 2012-10-22  4:09 Yadwinder Singh Brar
  2012-10-22 13:56 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Yadwinder Singh Brar @ 2012-10-22  4:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: sameo, Mark Brown, Liam Girdwood, Yadwinder Singh Brar

This patch fixes a sparse warning. Since max77686_enable() is a callback,so it
should be static.

Signed-off-by: Yadwinder Singh Brar <yadi.brar@samsung.com>
---
 drivers/regulator/max77686.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c
index 383eb9d..c9bec16 100644
--- a/drivers/regulator/max77686.c
+++ b/drivers/regulator/max77686.c
@@ -146,7 +146,7 @@ static int max77686_ldo_set_suspend_mode(struct regulator_dev *rdev,
 				  val);
 }
 
-int max77686_enable(struct regulator_dev *rdev)
+static int max77686_enable(struct regulator_dev *rdev)
 {
 	struct max77686_data *max77686 = rdev_get_drvdata(rdev);
 
-- 
1.7.0.4


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

end of thread, other threads:[~2012-10-22 13:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22  4:09 [PATCH] regulator: max77686: Make max77686_enable() static Yadwinder Singh Brar
2012-10-22 13:56 ` 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.