diff options
| author | Uwe Kleine-König <ukleinek@kernel.org> | 2025-11-07 10:33:34 +0100 |
|---|---|---|
| committer | Uwe Kleine-König <ukleinek@kernel.org> | 2025-11-14 11:56:14 +0100 |
| commit | a5d51e02d6fa550aed4b31ed67d230e82a771ed5 (patch) | |
| tree | 82fcdcb27cf9dee2e704311deb96911600d32ded /include/linux | |
| parent | 0a47e5e864c72627aacde1ed464539ba83e45221 (diff) | |
| parent | 9075ceeadac3e4e4fd906cd84f1ec537442c59be (diff) | |
Merge branch 'pwm/th1520' into pwm/for-next
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pwm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index e59be4e382d1..b11ae91723f8 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -488,6 +488,12 @@ int __pwmchip_add(struct pwm_chip *chip, struct module *owner); #define pwmchip_add(chip) __pwmchip_add(chip, THIS_MODULE) void pwmchip_remove(struct pwm_chip *chip); +/* + * For FFI wrapper use only: + * The Rust PWM abstraction needs this to properly free the pwm_chip. + */ +void pwmchip_release(struct device *dev); + int __devm_pwmchip_add(struct device *dev, struct pwm_chip *chip, struct module *owner); #define devm_pwmchip_add(dev, chip) __devm_pwmchip_add(dev, chip, THIS_MODULE) |
