regulator: palmas: Remove a redundant setting for warm_reset
Subsystems (2)
PATCH 1/1 regulator: palmas: Remove a redundant setting for warm_reset
Current code read "ti,warm_reset" of property twice, and set pdata->reg_init[idx]->warm_reset twice. Read and set it once is enough.
Signed-off-by Axel Lin <[email protected]>
--- drivers/regulator/palmas-regulator.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/regulator/palmas-regulator.c +0 -5
@@ -568,11 +568,6 @@ static void palmas_dt_to_pdata(struct device *dev, pdata->reg_init[idx]->mode_sleep = prop; ret =of_property_read_u32 (palmas_matches[idx].of_node, -"ti,warm_reset" , &prop); -if (!ret) - pdata->reg_init[idx]->warm_reset = prop; - - ret =of_property_read_u32 (palmas_matches[idx].of_node,"ti,tstep" , &prop);if (!ret) pdata->reg_init[idx]->tstep = prop;
Signature · 1 line
1.7.9.5
Mark Brown
AppliedQuoted 2 lines · Axel Lin
Current code read "ti,warm_reset" of property twice, and set pdata->reg_init[idx]->warm_reset twice. Read and set it once is enough.
Applied, thanks.