Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Axel Lin and committed by
Mark Brown
f33d0081 88b62b91

-5
-5
drivers/regulator/palmas-regulator.c
··· 566 566 pdata->reg_init[idx]->mode_sleep = prop; 567 567 568 568 ret = of_property_read_u32(palmas_matches[idx].of_node, 569 - "ti,warm_reset", &prop); 570 - if (!ret) 571 - pdata->reg_init[idx]->warm_reset = prop; 572 - 573 - ret = of_property_read_u32(palmas_matches[idx].of_node, 574 569 "ti,tstep", &prop); 575 570 if (!ret) 576 571 pdata->reg_init[idx]->tstep = prop;