regulator: da9121: add current support
authorAdam Ward <Adam.Ward.opensource@diasemi.com>
Mon, 30 Nov 2020 16:59:12 +0000 (16:59 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 1 Dec 2020 12:18:02 +0000 (12:18 +0000)
commit5c4b62af1d58fe3823dfb462ce553ceb9729c8fa
treed591afccfab078c50d9de4c16246375f52cac724
parent9929900d1878565a90a70bf25baa7d3e4187ae99
regulator: da9121: add current support

This commit adds support for getting/setting current for all supported
variants. Limits are adjusted per variant to match HW implementation.

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