Skip to content

Simplify PWM driver: remove CONFIG_PWM_MULTICHAN #15436

@raiden00pl

Description

@raiden00pl

Description

CONFIG_PWM_MULTICHAN seems to be redundant and unnecessarily complicates the PWM implementation in arch/. We can achieve the same functionality as CONFIG_PWM_MUTLICHAN=n by just setting CONFIG_PWM_NCHANNELS=1 which is the default value in Kconfig.
If a given architecture doesn't support multichanel PWM, then we can just add a simple #if CONFIG_PWM_NCHANNELS > 1 which returns a compilation error.

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions