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>
Loading
Please sign in to comment