summaryrefslogtreecommitdiffstats
path: root/rust/helpers/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers/irq.c')
-rw-r--r--rust/helpers/irq.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/rust/helpers/irq.c b/rust/helpers/irq.c
new file mode 100644
index 000000000..a61fad333
--- /dev/null
+++ b/rust/helpers/irq.c
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/interrupt.h>
+
+__rust_helper int rust_helper_request_irq(unsigned int irq,
+ irq_handler_t handler,
+ unsigned long flags, const char *name,
+ void *dev)
+{
+ return request_irq(irq, handler, flags, name, dev);
+}