rust: regulator: remove Regulator<Dynamic>
authorDaniel Almeida <daniel.almeida@collabora.com>
Wed, 10 Sep 2025 17:54:31 +0000 (14:54 -0300)
committerMark Brown <broonie@kernel.org>
Wed, 10 Sep 2025 20:02:15 +0000 (21:02 +0100)
commitb87ecbc54f22382ace1cf41645e8652a4ce44d52
tree0a7dc2d410e4673328c42f4080267baa3aa24420
parent5bad16482c2a7e788c042d98f3e97d3b2bbc8cc5
rust: regulator: remove Regulator<Dynamic>

After some experimenting and further discussion, it is starting to look
like Regulator<Dynamic> might be a footgun. It turns out that one can
get the same behavior by correctly using just Regulator<Enabled> and
Regulator<Disabled>, so there is no need to directly expose the manual
refcounting ability of Regulator<Dynamic> to clients.

Remove it while we do not have any other users.

Suggested-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://patch.msgid.link/20250910-regulator-remove-dynamic-v3-1-07af4dfa97cc@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
rust/kernel/regulator.rs