From: Alice Ryhl Date: Mon, 5 Jan 2026 12:42:27 +0000 (+0000) Subject: rust: pwm: Add __rust_helper to helpers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0332d0408d59a35edba128036246c3f60a6953dc;p=thirdparty%2Fkernel%2Flinux.git rust: pwm: Add __rust_helper to helpers This is needed to inline these helpers into Rust code. Signed-off-by: Alice Ryhl Acked-by: Michal Wilczynski Link: https://patch.msgid.link/20260105-define-rust-helper-v2-14-51da5f454a67@google.com Signed-off-by: Uwe Kleine-König --- diff --git a/rust/helpers/pwm.c b/rust/helpers/pwm.c index d75c588863685..eb24d2ea8e748 100644 --- a/rust/helpers/pwm.c +++ b/rust/helpers/pwm.c @@ -4,17 +4,17 @@ #include -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); }