Skip to content

Commit 2b62423

Browse files
WhatAmISupposedToPutHerejannau
authored andcommitted
rust: bindings: WIP(?): Add IIO bits for AOP series
Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com> Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 834c5a5 commit 2b62423

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

rust/bindings/bindings_helper.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
#include <linux/file.h>
5353
#include <linux/firmware.h>
5454
#include <linux/fs.h>
55+
#include <linux/iio/iio.h>
56+
#include <linux/iio/types.h>
5557
#include <linux/ioport.h>
5658
#include <linux/jiffies.h>
5759
#include <linux/jump_label.h>
@@ -102,6 +104,11 @@ const fop_flags_t RUST_CONST_HELPER_FOP_UNSIGNED_OFFSET = FOP_UNSIGNED_OFFSET;
102104

103105
const u64 BINDINGS_SNDRV_PCM_FMTBIT_FLOAT_LE = SNDRV_PCM_FMTBIT_FLOAT_LE;
104106

107+
const u32 BINDINGS_IIO_CHAN_INFO_RAW = IIO_CHAN_INFO_RAW;
108+
const u32 BINDINGS_IIO_CHAN_INFO_PROCESSED = IIO_CHAN_INFO_PROCESSED;
109+
const u32 BINDINGS_IIO_ANGL = IIO_ANGL;
110+
const u32 BINDINGS_IIO_LIGHT = IIO_LIGHT;
111+
105112
const xa_mark_t RUST_CONST_HELPER_XA_PRESENT = XA_PRESENT;
106113

107114
const gfp_t RUST_CONST_HELPER_XA_FLAGS_ALLOC = XA_FLAGS_ALLOC;

0 commit comments

Comments
 (0)