Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f33d0081 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 88b62b91
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -565,11 +565,6 @@ static void palmas_dt_to_pdata(struct device *dev,
		if (!ret)
		if (!ret)
			pdata->reg_init[idx]->mode_sleep = prop;
			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,
		ret = of_property_read_u32(palmas_matches[idx].of_node,
				"ti,tstep", &prop);
				"ti,tstep", &prop);
		if (!ret)
		if (!ret)