summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max77650-regulator.c
Commit message (Collapse)AuthorAgeFilesLines
* regulator: max77650: Use unsigned int for max77651_sbb1_regulator_volt_tableAxel Lin2019-03-181-1/+1
| | | | | | | Make it consistent as .volt_table should be const unsigned int *. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: max77650: Convert to use regulator_set/get_current_limit_regmapAxel Lin2019-03-031-49/+25
| | | | | | | | Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: max77650: Fix set_current_limit implementationAxel Lin2019-02-221-4/+2
| | | | | | | | Current code always return error, fix it. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: max77650: Add missing .owner field in regulator_descAxel Lin2019-02-201-0/+6
| | | | | | | Add missing .owner field in regulator_desc, which is used for refcounting. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: max77650: Fix include filesAxel Lin2019-01-301-1/+1
| | | | | | | | | This is a platform driver, no need to include linux/i2c.h. Include linux/of.h for of_match_ptr. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: max77650: add regulator supportBartosz Golaszewski2019-01-291-0/+518
Add regulator support for max77650. We support all four variants of this PMIC including non-linear voltage table for max77651 SBB1 rail. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>