]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: regulator: implement Send and Sync for Regulator<T>
authorDaniel Almeida <daniel.almeida@collabora.com>
Tue, 29 Jul 2025 17:31:41 +0000 (14:31 -0300)
committerMark Brown <broonie@kernel.org>
Sun, 10 Aug 2025 20:09:34 +0000 (21:09 +0100)
commit9a200cbdb54349909a42b45379e792e4b39dd223
treefe817b3d51a7b80e6c8f1f5b7a70034f5603e3d3
parentf7fbf3091f4cc4133574852f655593e1613d1af0
rust: regulator: implement Send and Sync for Regulator<T>

Sending a &Regulator<T> to another thread is safe, as the regulator core
will properly handle the locking for us. Additionally, there are no
restrictions that prevents sending a Regulator<T> to another thread.

Given these two facts, implement Send and Sync.

Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://patch.msgid.link/20250729-regulator-send-sync-v1-2-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>
rust/kernel/regulator.rs