Commit c69072d3 authored by Danilo Krummrich's avatar Danilo Krummrich
Browse files

samples: rust: platform: don't call as_ref() repeatedly



In SampleDriver::probe() don't call pdev.as_ref() repeatedly, instead
introduce a dedicated &Device.

Signed-off-by: default avatarIgor Korotin <igor.korotin.linux@gmail.com>
Reviewed-by: default avatarDirk Behme <dirk.behme@de.bosch.com>
Link: https://lore.kernel.org/r/20250620151849.281238-1-igor.korotin.linux@gmail.com


Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
parent 56a789f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment