regulator: ltc3589: Convert to use regulator_set_ramp_delay_regmap
authorAxel Lin <axel.lin@ingics.com>
Fri, 4 Jun 2021 11:58:03 +0000 (19:58 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 8 Jun 2021 12:37:45 +0000 (13:37 +0100)
commitba6622c43381e7045f8bc5438089ae53054fdf83
treecf51286af8de27718d0d66241618d9f184612f45
parent73d4ae57f82ec1e5fc92b9acd25bb1db2f8cf8e3
regulator: ltc3589: Convert to use regulator_set_ramp_delay_regmap

Use regulator_set_ramp_delay_regmap instead of open-coded

LTC3589_LINEAR_REG() no longer call LTC3589_REG() now.
Only LTC3589_LINEAR_REG() needs to set go_bit, thus remove go_bit
parameter from LTC3589_REG() macro.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210604115803.1260976-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/ltc3589.c