summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2026-01-05 12:42:27 +0000
committerUwe Kleine-König <ukleinek@kernel.org>2026-01-20 18:52:43 +0100
commit0332d0408d59a35edba128036246c3f60a6953dc (patch)
tree4c440ac184dfef8784e318aec30d64a360189fe5 /rust
parentfc1e4eae19eef739fea732902354ec93ab8234c6 (diff)
rust: pwm: Add __rust_helper to helpers
This is needed to inline these helpers into Rust code. Signed-off-by: Alice Ryhl <aliceryhl@google.com> Acked-by: Michal Wilczynski <m.wilczynski@samsung.com> Link: https://patch.msgid.link/20260105-define-rust-helper-v2-14-51da5f454a67@google.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'rust')
-rw-r--r--rust/helpers/pwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/helpers/pwm.c b/rust/helpers/pwm.c
index d75c58886368..eb24d2ea8e74 100644
--- a/rust/helpers/pwm.c
+++ b/rust/helpers/pwm.c
@@ -4,17 +4,17 @@
#include <linux/pwm.h>
-struct device *rust_helper_pwmchip_parent(const struct pwm_chip *chip)
+__rust_helper struct device *rust_helper_pwmchip_parent(const struct pwm_chip *chip)
{
return pwmchip_parent(chip);
}
-void *rust_helper_pwmchip_get_drvdata(struct pwm_chip *chip)
+__rust_helper void *rust_helper_pwmchip_get_drvdata(struct pwm_chip *chip)
{
return pwmchip_get_drvdata(chip);
}
-void rust_helper_pwmchip_set_drvdata(struct pwm_chip *chip, void *data)
+__rust_helper void rust_helper_pwmchip_set_drvdata(struct pwm_chip *chip, void *data)
{
pwmchip_set_drvdata(chip, data);
}