2012-10-22 04:13:50

by Yadwinder Singh Brar

[permalink] [raw]
Subject: [PATCH] regulator: max77686: Make max77686_enable() static.

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

Signed-off-by: Yadwinder Singh Brar <[email protected]>
---
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


2012-10-22 13:56:07

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] regulator: max77686: Make max77686_enable() static.

On Mon, Oct 22, 2012 at 09:39:28AM +0530, Yadwinder Singh Brar wrote:
> This patch fixes a sparse warning. Since max77686_enable() is a callback,so it
> should be static.

Applied, thanks.


Attachments:
(No filename) (189.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments