Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Alice Ryhl and committed by
Uwe Kleine-König
0332d040 fc1e4eae

+3 -3
+3 -3
rust/helpers/pwm.c
··· 4 4 5 5 #include <linux/pwm.h> 6 6 7 - struct device *rust_helper_pwmchip_parent(const struct pwm_chip *chip) 7 + __rust_helper struct device *rust_helper_pwmchip_parent(const struct pwm_chip *chip) 8 8 { 9 9 return pwmchip_parent(chip); 10 10 } 11 11 12 - void *rust_helper_pwmchip_get_drvdata(struct pwm_chip *chip) 12 + __rust_helper void *rust_helper_pwmchip_get_drvdata(struct pwm_chip *chip) 13 13 { 14 14 return pwmchip_get_drvdata(chip); 15 15 } 16 16 17 - void rust_helper_pwmchip_set_drvdata(struct pwm_chip *chip, void *data) 17 + __rust_helper void rust_helper_pwmchip_set_drvdata(struct pwm_chip *chip, void *data) 18 18 { 19 19 pwmchip_set_drvdata(chip, data); 20 20 }