regulator: max8925: Remove unused parameter from max8925_regulator_dt_init
PATCH 1/1 regulator: max8925: Remove unused parameter from max8925_regulator_dt_init
The info parameter is not used at all, remove it.
Signed-off-by Axel Lin <[email protected]>
--- drivers/regulator/max8925-regulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/regulator/max8925-regulator.c +2 -3
@@ -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;
Signature · 1 line
1.7.9.5
Quoted 38 lines · Axel Lin
The info parameter is not used at all, remove it.
Signed-off-by Axel Lin <[email protected]>--- drivers/regulator/max8925-regulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)drivers/regulator/max8925-regulator.c +2
-4@@ -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; --
Quoted 4 lines
1.7.9.5
Acked-by Haojian Zhuang <[email protected]>