summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max20411-regulator.c
Commit message (Collapse)AuthorAgeFilesLines
* regulator: max20411: Fix off-by-one for n_voltages settingAxel Lin2023-02-131-1/+1
| | | | | | | | Otherwise regulator_list_voltage returns -EINVAL for MAX20411_MAX_SEL. Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20230211150019.1545542-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: max20411: Convert to i2c's .probe_new()Uwe Kleine-König2023-01-271-3/+2
| | | | | | | | | The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230127101726.1313927-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: max20411: Directly include bitfield.hMark Brown2023-01-261-0/+1
| | | | | | | | The max20411 driver uses bitfield.h but does not directly include it, add an inclusion to avoid build errors in configurations which do not result in an implicit inclusion. Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: Introduce Maxim MAX20411 Step-Down converterBjorn Andersson2023-01-251-0/+163
Introduce a driver to control the Maxim MAX20411 family of high-efficiency, syncrhonous step-down converters. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Link: https://lore.kernel.org/r/20230124184440.1421074-3-quic_bjorande@quicinc.com Signed-off-by: Mark Brown <broonie@kernel.org>