-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify PWM driver: remove CONFIG_PWM_MULTICHAN #15436
Comments
According to git, this symbol was added by @augustofg sometime ago, but I think the original support to PWM multi-channel was created by other people (my memory state that it was created by you or Matias Nitsche @protobits). |
@acassis multichan PWM was added loooong time ago in e8c2466. |
Hi all, just please note that this might be a breaking API change, since it is safe to assume applications are using I have proposed other breaking change several months ago in #12381 that simplifies
There were also some other proposals in the issue I haven't worked on yet, this is just an initial kick off. |
@michallenc I completely forgot about the issue you created :) so there are at least 2 people who see this problem, so I think it's worth fixing. I'm closing this issue, we can track the problem in #12381 |
Description
CONFIG_PWM_MULTICHAN
seems to be redundant and unnecessarily complicates the PWM implementation inarch/
. We can achieve the same functionality asCONFIG_PWM_MUTLICHAN=n
by just settingCONFIG_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
The text was updated successfully, but these errors were encountered: