regulator: add property parsing and callbacks to set protection limits
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Thu, 3 Jun 2021 05:42:12 +0000 (08:42 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 21 Jun 2021 12:08:41 +0000 (13:08 +0100)
commit89a6a5e56c8248a077d12424a1383a6b18ea840b
tree31a8361eae067daac0747acaac685a5db14cffad
parent7111c6d1b31b42c8c758f6681e895a5116e3bad6
regulator: add property parsing and callbacks to set protection limits

Add DT property parsing code and setting callback for regulator over/under
voltage, over-current and temperature error limits.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/e7b8007ba9eae7076178bf3363fb942ccb1cc9a5.1622628334.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/of_regulator.c
drivers/regulator/qcom-labibb-regulator.c
drivers/regulator/qcom_spmi-regulator.c
drivers/regulator/stpmic1_regulator.c
include/linux/regulator/driver.h
include/linux/regulator/machine.h