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)
commit8c44e448583cbabff5eeda4137f52a1bf2df9a4c
treec69b302febb6e666b9132c6133820344c4fb8a79
parentcde999e2a7b238ef46875a724d3630e168d94f4d
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