Skip to content
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

modules: led: Improve error handling #351

Merged
merged 1 commit into from
Sep 30, 2024
Merged

modules: led: Improve error handling #351

merged 1 commit into from
Sep 30, 2024

Conversation

simensrostad
Copy link
Collaborator

@simensrostad simensrostad commented Sep 23, 2024

Improve error handling:

  • Add missing error handling for function calls
  • Cleanup log statements
  • Propagate errors to the led module
  • Make PWM start and stop functions static,
    remove from API. Not used externally.
  • Add check that prevents led pwm work to set a pattern if
    the pwm is suspended via power management.

@simensrostad simensrostad force-pushed the pwmfix branch 4 times, most recently from 2c0a073 to 1282c78 Compare September 30, 2024 11:41
@simensrostad simensrostad marked this pull request as ready for review September 30, 2024 11:44
@simensrostad simensrostad force-pushed the pwmfix branch 3 times, most recently from 04e46b7 to f5f45cb Compare September 30, 2024 13:02
@simensrostad simensrostad changed the title led_pwm: Update handling of PWM modules: led: Improve error handling Sep 30, 2024
Improve error handling:
- Add missing error handling for function calls
- Cleanup log statements
- Propagate errors to the led module
- Make PWM start and stop functions static,
  remove from API. Not used externally.
- Add check that prevents led pwm work to set a pattern if
  the pwm is suspended via power management.
- Remove unneeded kconfig

Signed-off-by: Simen S. Røstad <[email protected]>
Copy link

@simensrostad simensrostad merged commit c5a5372 into main Sep 30, 2024
5 checks passed
@simensrostad simensrostad deleted the pwmfix branch September 30, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant