Re: [PATCH 3/4] pwm: th1520: Use module_pwm_platform_driver! macro
From: Troy Mitchell
Date: Tue Oct 28 2025 - 21:00:12 EST
On Tue, Oct 28, 2025 at 01:22:34PM +0100, Michal Wilczynski wrote:
> The `pwm_th1520` Rust driver calls C functions from the `PWM` namespace,
> triggering `modpost` warnings due to missing namespace import
> declarations in its `.modinfo` section.
>
> Fix these warnings and simplify the module declaration by switching from
> the generic `kernel::module_platform_driver!` macro to the newly
> introduced PWM-specific `kernel::module_pwm_platform_driver!` macro.
> The new macro automatically handles the required `imports_ns: ["PWM"]`
> declaration.
>
> Signed-off-by: Michal Wilczynski <m.wilczynski@xxxxxxxxxxx>
Reviewed-by: Troy Mitchell <troy.mitchell@xxxxxxxxx>