Commit 3accb57d authored by Viresh Kumar's avatar Viresh Kumar
Browse files

rust: cpu: Add from_cpu()



This implements cpu::from_cpu(), which returns a reference to
Device for a CPU. The C struct is created at initialization time for
CPUs and is never freed and so ARef isn't returned from this function.

The new helper will be used by Rust based cpufreq drivers.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent a4e3b76e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment