diff options
author | Daniel Almeida <daniel.almeida@collabora.com> | 2025-07-29 14:31:40 -0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-08-10 21:09:33 +0100 |
commit | f7fbf3091f4cc4133574852f655593e1613d1af0 (patch) | |
tree | b3358c406b6c80cc2276dec2b1c786a5bc1eb7a1 /tools/docs/parse-headers.py | |
parent | 8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff) |
rust: regulator: remove needless &mut from member functions
Regulator functions like "regulator_enable()" and "regulator_disable()"
already provide their own locking through "regulator_lock_dependent()", so
we can safely call the Rust API with a shared reference.
This was already the case with Regulator::set_voltage() on the Rust side,
but it was forgotten for Regulator::enable() and Regulator::disable().
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://patch.msgid.link/20250729-regulator-send-sync-v1-1-8bcbd546b940@collabora.com
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions