summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/mt6315-regulator.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'regulator/for-5.14' into regulator-nextMark Brown2021-06-231-10/+11
|\
| * regulator: mt6315: Fix checking return value of devm_regmap_init_spmi_extAxel Lin2021-06-151-2/+2
| | | | | | | | | | | | | | | | devm_regmap_init_spmi_ext() returns ERR_PTR() on error. Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210615132934.3453965-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
| * regulator: mt6315: Don't ignore devm_regulator_register failureAxel Lin2021-06-011-8/+9
| | | | | | | | | | | | | | | | Also use dev_err instead of dev_notice for messages in error conditions. Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210530020543.418634-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
* | regulator: mt6315: Fix function prototype for mt6315_map_modeAxel Lin2021-06-011-1/+1
|/ | | | | | | | | The .of_map_mode should has below function prototype: unsigned int (*of_map_mode)(unsigned int mode); Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210530022109.425054-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: mt6315: Fix off-by-one for .n_voltagesAxel Lin2021-03-111-1/+1
| | | | | | | | The valid selector is 0 ~ 0xbf, so the .n_voltages should be 0xc0. Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210311020558.579597-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: mt6315: Return REGULATOR_MODE_INVALID for invalid modeAxel Lin2021-03-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> Link: https://lore.kernel.org/r/20210215034813.45510-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: mt6315: Add support for MT6315 regulatorHsin-Hsiung Wang2021-02-081-0/+299
The MT6315 is a regulator found on boards based on MediaTek MT8192 and probably other SoCs. It connects as a slave to SoC using SPMI. Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> Link: https://lore.kernel.org/r/1612678457-11548-3-git-send-email-hsin-hsiung.wang@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>