OSDN Git Service

regulator: da9063: implement setter for voltage monitoring
authorBenjamin Bara <benjamin.bara@skidata.com>
Wed, 5 Apr 2023 17:14:35 +0000 (19:14 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 12 Apr 2023 11:52:10 +0000 (12:52 +0100)
commitb8717a80e6ee6500ae396d21aac2a00947bba993
tree3bd2dcfbd7e2f32b3f7d76206b0c85ac96db182f
parent13186dae182ab1a2a52a53424672f49cf3e81f9b
regulator: da9063: implement setter for voltage monitoring

Allow to en- and disable voltage monitoring from the device tree.
Consider that the da9063 only monitors under- *and* over-voltage
together, so both must be set to the same severity and value.

Reviewed-by: Adam Ward <DLG-Adam.Ward.opensource@dm.renesas.com>
Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
Link: https://lore.kernel.org/r/20230403-da9063-disable-unused-v3-2-cc4dc698864c@skidata.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9063-regulator.c