* [PATCH] regulator: max8925: Remove unused parameter from max8925_regulator_dt_init
@ 2013-02-15 12:36 Axel Lin
2013-02-16 2:53 ` Haojian Zhuang
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2013-02-15 12:36 UTC (permalink / raw)
To: Mark Brown; +Cc: Haojian Zhuang, Liam Girdwood, linux-kernel
The info parameter is not used at all, remove it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/regulator/max8925-regulator.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/max8925-regulator.c b/drivers/regulator/max8925-regulator.c
index 0d5f64a..3597da8 100644
--- a/drivers/regulator/max8925-regulator.c
+++ b/drivers/regulator/max8925-regulator.c
@@ -246,7 +246,6 @@ static struct max8925_regulator_info max8925_regulator_info[] = {
#ifdef CONFIG_OF
static int max8925_regulator_dt_init(struct platform_device *pdev,
- struct max8925_regulator_info *info,
struct regulator_config *config,
int ridx)
{
@@ -272,7 +271,7 @@ static int max8925_regulator_dt_init(struct platform_device *pdev,
return 0;
}
#else
-#define max8925_regulator_dt_init(w, x, y, z) (-1)
+#define max8925_regulator_dt_init(x, y, z) (-1)
#endif
static int max8925_regulator_probe(struct platform_device *pdev)
@@ -309,7 +308,7 @@ static int max8925_regulator_probe(struct platform_device *pdev)
config.dev = &pdev->dev;
config.driver_data = ri;
- if (max8925_regulator_dt_init(pdev, ri, &config, regulator_idx))
+ if (max8925_regulator_dt_init(pdev, &config, regulator_idx))
if (pdata)
config.init_data = pdata;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: max8925: Remove unused parameter from max8925_regulator_dt_init
2013-02-15 12:36 [PATCH] regulator: max8925: Remove unused parameter from max8925_regulator_dt_init Axel Lin
@ 2013-02-16 2:53 ` Haojian Zhuang
0 siblings, 0 replies; 2+ messages in thread
From: Haojian Zhuang @ 2013-02-16 2:53 UTC (permalink / raw)
To: Axel Lin; +Cc: Mark Brown, Liam Girdwood, linux-kernel
On Fri, Feb 15, 2013 at 8:36 PM, Axel Lin <axel.lin@ingics.com> wrote:
> The info parameter is not used at all, remove it.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> drivers/regulator/max8925-regulator.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/regulator/max8925-regulator.c b/drivers/regulator/max8925-regulator.c
> index 0d5f64a..3597da8 100644
> --- a/drivers/regulator/max8925-regulator.c
> +++ b/drivers/regulator/max8925-regulator.c
> @@ -246,7 +246,6 @@ static struct max8925_regulator_info max8925_regulator_info[] = {
>
> #ifdef CONFIG_OF
> static int max8925_regulator_dt_init(struct platform_device *pdev,
> - struct max8925_regulator_info *info,
> struct regulator_config *config,
> int ridx)
> {
> @@ -272,7 +271,7 @@ static int max8925_regulator_dt_init(struct platform_device *pdev,
> return 0;
> }
> #else
> -#define max8925_regulator_dt_init(w, x, y, z) (-1)
> +#define max8925_regulator_dt_init(x, y, z) (-1)
> #endif
>
> static int max8925_regulator_probe(struct platform_device *pdev)
> @@ -309,7 +308,7 @@ static int max8925_regulator_probe(struct platform_device *pdev)
> config.dev = &pdev->dev;
> config.driver_data = ri;
>
> - if (max8925_regulator_dt_init(pdev, ri, &config, regulator_idx))
> + if (max8925_regulator_dt_init(pdev, &config, regulator_idx))
> if (pdata)
> config.init_data = pdata;
>
> --
> 1.7.9.5
>
>
>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-16 2:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-15 12:36 [PATCH] regulator: max8925: Remove unused parameter from max8925_regulator_dt_init Axel Lin
2013-02-16 2:53 ` Haojian Zhuang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).