summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/stpmic1_regulator.c
Commit message (Collapse)AuthorAgeFilesLines
* regulator: stpmic1: fix regulator_lock usagePascal PAILLET-LME2018-12-031-1/+1
| | | | | | | fix a compilation issue due to regulator_lock usage. Signed-off-by: Pascal Paillet <p.paillet@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: core: Use ww_mutex for regulators lockingDmitry Osipenko2018-11-191-2/+2
| | | | | | | | | Wait/wound mutex shall be used in order to avoid lockups on locking of coupled regulators. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Suggested-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: stpmic1: Return REGULATOR_MODE_INVALID for invalid modeAxel Lin2018-10-101-1/+1
| | | | | | | | -EINVAL is not a valid return value for .of_map_mode, return REGULATOR_MODE_INVALID instead. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: stpmic1: add stpmic1 regulator driverpascal paillet2018-10-081-0/+674
The stpmic1 PMIC embeds several regulators and switches with different capabilities. Signed-off-by: pascal paillet <p.paillet@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>
OpenPOWER on IntegriCloud