wahoo: powerstats: fix -Wreorder-init-list

Members of designated initializers in C++20 must be ordered, unlike C99.

Bug: 139945549
Test: mm
Change-Id: I34f715dcd9991403b8ae99b85fbe357da3c46971
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
This commit is contained in:
Nick Desaulniers
2019-11-13 11:02:50 -08:00
parent d4b264086f
commit 47d6d0135c

View File

@@ -75,8 +75,8 @@ bool EaselStateResidencyDataProvider::getResults(
PowerEntityStateResidencyResult result = {
.powerEntityId = mPowerEntityId,
.stateResidencyData = {{.powerEntityStateId = EASEL_SYNTHETIC_SLEEP_ID,
.totalStateEntryCount = mTotalOnSnapshotCount,
.totalTimeInStateMs = mTotalNotOnSnapshotCount,
.totalStateEntryCount = mTotalOnSnapshotCount,
.lastEntryTimestampMs = 0}}
};