[PATCH 2/3] pwm: put all UCLASS PWM drivers under an if condition on DM_PWM
    Tom Rini 
    trini at konsulko.com
       
    Wed Oct 29 20:15:20 CET 2025
    
    
  
On Wed, Oct 29, 2025 at 12:16:09PM +0100, Quentin Schulz wrote:
> From: Quentin Schulz <quentin.schulz at cherry.de>
> 
> This simplifies the "depends on" since we don't need DM_PWM listed
> explicitly there as it already is made explicit via the surrounding
> "if". No intended change in behavior.
> 
> Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
Reviewed-by: Tom Rini <trini at konsulko.com>
> ---
> Note that I believe PWM_SANDBOX should also depend on DM_PWM but I'm not
> sure how to make sure of that. The PWM sandbox test is explicitly only
> built when DM_PWM=y instead of SANDBOX_PWM=y (is that another issue?).
Yes, it's DM_PWM only, and so could be moved there. The test in
test/dm/pwm.c is specifically only for sandbox but that's true of all of
test/dm/ and so UT_DM depends on sandbox and so that Makefile part is
fine.
-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251029/e846b8a1/attachment.sig>
    
    
More information about the U-Boot
mailing list