Skip to content

Commit 7cf4b06

Browse files
committed
fixup! iio: common: Add AOP sensor drivers.
Adapt to {core -> kernel}::ffi switch. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 13ee833 commit 7cf4b06

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

rust/kernel/iio/common/aop_sensors.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ unsafe extern "C" fn aop_read_raw<T: MessageProcessor + 'static>(
5151
chan: *const bindings::iio_chan_spec,
5252
val: *mut i32,
5353
_: *mut i32,
54-
mask: i64,
54+
mask: isize,
5555
) -> i32 {
5656
let data = unsafe { Arc::<AopSensorData<T>>::borrow((*dev).priv_) };
5757
let ty = unsafe { (*chan).type_ };
58-
if mask != bindings::BINDINGS_IIO_CHAN_INFO_PROCESSED as i64
59-
&& mask != bindings::BINDINGS_IIO_CHAN_INFO_RAW as i64
58+
if mask != bindings::BINDINGS_IIO_CHAN_INFO_PROCESSED as isize
59+
&& mask != bindings::BINDINGS_IIO_CHAN_INFO_RAW as isize
6060
{
6161
return EINVAL.to_errno();
6262
}
@@ -88,7 +88,7 @@ impl<T: MessageProcessor + 'static> IIORegistration<T> {
8888
data: Arc<AopSensorData<T>>,
8989
name: &'static CStr,
9090
ty: u32,
91-
info_mask: i64,
91+
info_mask: isize,
9292
module: &ThisModule,
9393
) -> Result<Self> {
9494
let spec = KBox::pin(

0 commit comments

Comments
 (0)