Skip to content

Commit 6646dfa

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 a9a3647 commit 6646dfa

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
@@ -48,6 +48,8 @@
4848
#include <linux/file.h>
4949
#include <linux/firmware.h>
5050
#include <linux/fs.h>
51+
#include <linux/iio/iio.h>
52+
#include <linux/iio/types.h>
5153
#include <linux/ioport.h>
5254
#include <linux/jiffies.h>
5355
#include <linux/jump_label.h>
@@ -97,6 +99,11 @@ const fop_flags_t RUST_CONST_HELPER_FOP_UNSIGNED_OFFSET = FOP_UNSIGNED_OFFSET;
9799

98100
const u64 BINDINGS_SNDRV_PCM_FMTBIT_FLOAT_LE = SNDRV_PCM_FMTBIT_FLOAT_LE;
99101

102+
const u32 BINDINGS_IIO_CHAN_INFO_RAW = IIO_CHAN_INFO_RAW;
103+
const u32 BINDINGS_IIO_CHAN_INFO_PROCESSED = IIO_CHAN_INFO_PROCESSED;
104+
const u32 BINDINGS_IIO_ANGL = IIO_ANGL;
105+
const u32 BINDINGS_IIO_LIGHT = IIO_LIGHT;
106+
100107
const xa_mark_t RUST_CONST_HELPER_XA_PRESENT = XA_PRESENT;
101108

102109
const gfp_t RUST_CONST_HELPER_XA_FLAGS_ALLOC = XA_FLAGS_ALLOC;

0 commit comments

Comments
 (0)