Skip to content

Commit 94f7372

Browse files
WhatAmISupposedToPutHerejannau
authored andcommitted
rust: bindings: WIP(?): Add IIO bits for AOP series
Signed-off-by: Sasha Finkelstein <[email protected]> Signed-off-by: Janne Grunau <[email protected]>
1 parent cb6ec03 commit 94f7372

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
@@ -53,6 +53,8 @@
5353
#include <linux/file.h>
5454
#include <linux/firmware.h>
5555
#include <linux/fs.h>
56+
#include <linux/iio/iio.h>
57+
#include <linux/iio/types.h>
5658
#include <linux/ioport.h>
5759
#include <linux/jiffies.h>
5860
#include <linux/jump_label.h>
@@ -104,6 +106,11 @@ const fop_flags_t RUST_CONST_HELPER_FOP_UNSIGNED_OFFSET = FOP_UNSIGNED_OFFSET;
104106

105107
const u64 BINDINGS_SNDRV_PCM_FMTBIT_FLOAT_LE = SNDRV_PCM_FMTBIT_FLOAT_LE;
106108

109+
const u32 BINDINGS_IIO_CHAN_INFO_RAW = IIO_CHAN_INFO_RAW;
110+
const u32 BINDINGS_IIO_CHAN_INFO_PROCESSED = IIO_CHAN_INFO_PROCESSED;
111+
const u32 BINDINGS_IIO_ANGL = IIO_ANGL;
112+
const u32 BINDINGS_IIO_LIGHT = IIO_LIGHT;
113+
107114
const xa_mark_t RUST_CONST_HELPER_XA_PRESENT = XA_PRESENT;
108115

109116
const gfp_t RUST_CONST_HELPER_XA_FLAGS_ALLOC = XA_FLAGS_ALLOC;

0 commit comments

Comments
 (0)