power: regulator: tps65941: use function callbacks for conversion ops
authorBhargav Raviprakash <bhargav.r@ltts.com>
Mon, 22 Apr 2024 09:49:01 +0000 (09:49 +0000)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 29 Apr 2024 00:20:51 +0000 (09:20 +0900)
commit5d7dbd22cf7d6d85a3fbc6ea317db4ed163f3341
tree8151f3737957654282883a9a9181d6b33393681d
parenta08c8798cc79ca35c521727bfcef160786c2baf3
power: regulator: tps65941: use function callbacks for conversion ops

Use function callbacks for volt2val, val2volt and slewrate lookups.
This makes it easier to add support for TPS65224 PMIC regulators.

Signed-off-by: Bhargav Raviprakash <bhargav.r@ltts.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/power/regulator/tps65941_regulator.c