-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuel_gauge: Repl property struct w/ union
Based on review of the similar charger driver API, it's been demonstrated from the community that embedding a per value property type when fetching properties. Separating off the property types from the property values themselves also allow an array of property types to declared as static const. Break up fuel_gauge_property struct into a fuel_gauge_prop_val union and a fuel_gauge_prop_t property type as inputs into fuel gauge API functions. (cherry picked from commit 12cbfcf) Original-Signed-off-by: Aaron Massey <aaronmassey@google.com> GitOrigin-RevId: 12cbfcf Change-Id: I8ec43bb6c2f91e5dcf76377e6e47ab862de8a8b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4896613 Reviewed-by: Al Semjonovs <asemjonovs@google.com> Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Tested-by: Al Semjonovs <asemjonovs@google.com> Tested-by: Keith Short <keithshort@chromium.org> Commit-Queue: Al Semjonovs <asemjonovs@google.com>
- Loading branch information
1 parent
b76b10c
commit 3d24e41
Showing
10 changed files
with
491 additions
and
680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.