Skip to content

Commit 0488652

Browse files
committed
Merge branch 'pm-opp' into linux-next
* pm-opp: rust: opp: use c_* types via kernel prelude
2 parents 03d5f2f + 1c61cf9 commit 0488652

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

rust/kernel/opp.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,9 @@ impl<T: ConfigOps + Default> Config<T> {
514514
dev: *mut bindings::device,
515515
opp_table: *mut bindings::opp_table,
516516
opp: *mut bindings::dev_pm_opp,
517-
_data: *mut kernel::ffi::c_void,
517+
_data: *mut c_void,
518518
scaling_down: bool,
519-
) -> kernel::ffi::c_int {
519+
) -> c_int {
520520
from_result(|| {
521521
// SAFETY: 'dev' is guaranteed by the C code to be valid.
522522
let dev = unsafe { Device::get_device(dev) };
@@ -540,8 +540,8 @@ impl<T: ConfigOps + Default> Config<T> {
540540
old_opp: *mut bindings::dev_pm_opp,
541541
new_opp: *mut bindings::dev_pm_opp,
542542
regulators: *mut *mut bindings::regulator,
543-
count: kernel::ffi::c_uint,
544-
) -> kernel::ffi::c_int {
543+
count: c_uint,
544+
) -> c_int {
545545
from_result(|| {
546546
// SAFETY: 'dev' is guaranteed by the C code to be valid.
547547
let dev = unsafe { Device::get_device(dev) };

0 commit comments

Comments
 (0)