regulator: Add regmap helper for ramp-delay setting
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Mon, 29 Mar 2021 12:59:04 +0000 (15:59 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 2 Apr 2021 17:33:59 +0000 (18:33 +0100)
commitfb8fee9efdcf084d9e31ba14cc4734d97e5dd972
tree2e1aab252695ef4c345e7be30d3080e8d7cf941c
parente3baacf54275647a018ee35bff3bc775a8a2a01a
regulator: Add regmap helper for ramp-delay setting

Quite a few regulator ICs do support setting ramp-delay by writing a value
matching the delay to a ramp-delay register.

Provide a simple helper for table-based delay setting.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/f101f1db564cf32cb58719c77af0b00d7236bb89.1617020713.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/helpers.c
include/linux/regulator/driver.h