]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: regulator: use `to_result` for error handling
authorOnur Özkan <work@onurozkan.dev>
Thu, 21 Aug 2025 09:07:20 +0000 (12:07 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 28 Aug 2025 09:08:39 +0000 (11:08 +0200)
commite2ab5f600bb01d3625d667d97b3eb7538e388336
tree832e9f89d710310da17cead94ce3659c51343340
parentec0be3cdf40b5302248f3fb27a911cc630e8b855
rust: regulator: use `to_result` for error handling

Simplifies error handling by replacing the manual check
of the return value with the `to_result` helper.

Signed-off-by: Onur Özkan <work@onurozkan.dev>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Message-ID: <20250821090720.23939-1-work@onurozkan.dev>
Signed-off-by: Mark Brown <broonie@kernel.org>
rust/kernel/regulator.rs