summaryrefslogtreecommitdiff
path: root/rust/bindings
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2025-02-20 16:34:00 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2025-05-19 12:55:40 +0530
commitb7b7b981cb037d250ad06c3a6558d69e04ed77c7 (patch)
treececba4407b799c1ded4de0c7a302e884af77ef55 /rust/bindings
parentab49f64078da82ae5c362900b65a872f8a9bd585 (diff)
rust: clk: Add helpers for Rust code
Non-trivial C macros and inlined C functions cannot be used directly in the Rust code and are used via functions ("helpers") that wrap those so that they can be called from Rust. In order to prepare for adding Rust abstractions for the clock APIs, add clock helpers required by the Rust implementation. Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'rust/bindings')
-rw-r--r--rust/bindings/bindings_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h
index ab37e1d35c70..f53d6e1a21f2 100644
--- a/rust/bindings/bindings_helper.h
+++ b/rust/bindings/bindings_helper.h
@@ -10,6 +10,7 @@
#include <linux/blk-mq.h>
#include <linux/blk_types.h>
#include <linux/blkdev.h>
+#include <linux/clk.h>
#include <linux/cpumask.h>
#include <linux/cred.h>
#include <linux/device/faux.h>