]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: stpmic1: Simplify regulators registration
authorPascal PAILLET-LME <p.paillet@st.com>
Tue, 19 Feb 2019 10:04:32 +0000 (10:04 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 19 Feb 2019 11:02:18 +0000 (11:02 +0000)
commit09880127fe3b35889c416eb05a8f12451d26db87
treec69b302febb6e666b9132c6133820344c4fb8a79
parent1126dcee45308b07e89a960d6af497a56ae35b98
regulator: stpmic1: Simplify regulators registration

Stop using a regulator_init callback. This leads to a more simple regulator
registration code. This also permits to spuress struct stpmic1_regulator.
Also rename stpmic1_regulators_matches to stpmic1_matches.

Signed-off-by: pascal paillet <p.paillet@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/stpmic1_regulator.c