]> 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)
commit6f986a373a8682f6f11f79cacdfd1b25c4a4e137
treec69b302febb6e666b9132c6133820344c4fb8a79
parent8a7b49bb15c294e6f845f6931e8ee12c8c393004
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