Commit b0a86fb0 authored by Abhinav Ananthu's avatar Abhinav Ananthu Committed by Viresh Kumar
Browse files

rust: cpufreq: use c_ types from kernel prelude



Update cpufreq FFI callback signatures to use `c_int` from the `kernel::prelude`,
rather than accessing it explicitly through `kernel::ffi::c_int`.

Although these types are defined in the `ffi` crate, they are re-exported
via `kernel::prelude`. This aligns with the Rust-for-Linux coding
guidelines and ensures proper C ABI compatibility across platforms.

Signed-off-by: default avatarAbhinav Ananthu <abhinav.ogl@gmail.com>
Suggested-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
[ Viresh: Fixed rustfmtcheck errors ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 10bb7f09
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment