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

ACT8945A: Correct DEBUGASSERT code error, plus tidy ups #8742

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

TimJTi
Copy link
Contributor

@TimJTi TimJTi commented Mar 6, 2023

Summary

Found a silly DEBUGASSERT logical error.

Whilst correcting this spotted a _err formatting warning; fixed and slightly amended it to fix the warning. Also attempted to fix a previously raised concern about C89 compatibility.

Impact

None, unless you have DEBUGASSERTS enabled in which case it will no longer assert because of the error.

Testing

Custom board: SAMA5D27C-D1G with act8945a regulator

drivers/power/supply/act8945a.c Outdated Show resolved Hide resolved
@TimJTi TimJTi mentioned this pull request Mar 6, 2023
@pkarashchenko
Copy link
Contributor

Please squash commits

…bility

Update drivers/power/supply/act8945a.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
@pkarashchenko
Copy link
Contributor

The C89 issue is not fixed. Anyway I can try to get back compatibility later

@TimJTi
Copy link
Contributor Author

TimJTi commented Mar 6, 2023

The C89 issue is not fixed. Anyway I can try to get back compatibility later

I was trying to force the build to enforce strict c89 but have not worked out how to do that? Arm gcc, Linux.

What is not compliant still - I am happy to fix once I understand :)

@pkarashchenko pkarashchenko merged commit 94f0283 into apache:master Mar 6, 2023
@TimJTi TimJTi deleted the ACT8945A-error-fixes branch March 6, 2023 16:02
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.

3 participants