rust: cpufreq: use c_ types from kernel prelude
authorAbhinav Ananthu <abhinav.ogl@gmail.com>
Fri, 20 Jun 2025 08:52:30 +0000 (14:22 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 23 Jun 2025 04:15:45 +0000 (09:45 +0530)
commitb0a86fb0b27f1ae944a6b0a1a9187c332bb2773e
tree528af4cff64bfcb4666f66c35a012ca1ec6c7707
parent10bb7f09e346f152d2627e0b3619c402d64a50e9
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: Abhinav Ananthu <abhinav.ogl@gmail.com>
Suggested-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
[ Viresh: Fixed rustfmtcheck errors ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
rust/kernel/cpufreq.rs