Skip to content

Commit 4020266

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 b0db169 commit 4020266

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
@@ -58,6 +58,8 @@
5858
#include <linux/firmware.h>
5959
#include <linux/interrupt.h>
6060
#include <linux/fs.h>
61+
#include <linux/iio/iio.h>
62+
#include <linux/iio/types.h>
6163
#include <linux/ioport.h>
6264
#include <linux/jiffies.h>
6365
#include <linux/jump_label.h>
@@ -113,6 +115,11 @@ const fop_flags_t RUST_CONST_HELPER_FOP_UNSIGNED_OFFSET = FOP_UNSIGNED_OFFSET;
113115

114116
const u64 BINDINGS_SNDRV_PCM_FMTBIT_FLOAT_LE = SNDRV_PCM_FMTBIT_FLOAT_LE;
115117

118+
const u32 BINDINGS_IIO_CHAN_INFO_RAW = IIO_CHAN_INFO_RAW;
119+
const u32 BINDINGS_IIO_CHAN_INFO_PROCESSED = IIO_CHAN_INFO_PROCESSED;
120+
const u32 BINDINGS_IIO_ANGL = IIO_ANGL;
121+
const u32 BINDINGS_IIO_LIGHT = IIO_LIGHT;
122+
116123
const xa_mark_t RUST_CONST_HELPER_XA_PRESENT = XA_PRESENT;
117124

118125
const gfp_t RUST_CONST_HELPER_XA_FLAGS_ALLOC = XA_FLAGS_ALLOC;

0 commit comments

Comments
 (0)