regulator: expose regulator_find_closest_bigger
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 4 May 2023 17:36:14 +0000 (19:36 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 23 May 2023 18:01:55 +0000 (19:01 +0100)
commit431cb97b763133fba8b1c68c1ed089315f25e4dd
treef91044b470accd3bf964e0fde1fb90ab7b1ebbf3
parent924764aa5f2e705f46f548611e6a9d6b986ae880
regulator: expose regulator_find_closest_bigger

Expose and document the table lookup logic used by
regulator_set_ramp_delay_regmap, so that it can be
reused for devices that cannot be configured via
regulator_set_ramp_delay_regmap.

Tested-by: Diederik de Haas <didi.debian@cknow.org> # Rock64, Quartz64 Model A + B
Tested-by: Vincent Legoll <vincent.legoll@gmail.com> # Pine64 QuartzPro64
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230504173618.142075-11-sebastian.reichel@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/helpers.c
include/linux/regulator/driver.h