regulator: da9121: add mode support
authorAdam Ward <Adam.Ward.opensource@diasemi.com>
Mon, 30 Nov 2020 16:59:13 +0000 (16:59 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 1 Dec 2020 12:18:03 +0000 (12:18 +0000)
commit65ac97042d4e0918b401b5f21e2810efa27be848
tree5618a2122fa7084bd5d8343ff986cf0c4724e429
parent5c4b62af1d58fe3823dfb462ce553ceb9729c8fa
regulator: da9121: add mode support

Adds get/set for mode, and mapping from REGULATOR_MODE_* to select
PFM/PWM/Auto operation.

Signed-off-by: Adam Ward <Adam.Ward.opensource@diasemi.com>
Link: https://lore.kernel.org/r/7844c8f6facb6f7c0649381629cc75ccad14723d.1606755367.git.Adam.Ward.opensource@diasemi.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9121-regulator.c