powerstats: add NFC state residency stats am: 546a342277 am: 481ced38a3

Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/18220010

Change-Id: Ib1508b723548d6440c9b78cfd420a884ab45c509
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Darren Hsu 2022-05-09 17:25:28 +00:00 committed by Automerger Merge Worker
commit 67884da41f

View file

@ -63,6 +63,7 @@ int main() {
addGs201CommonDataProviders(p);
addDisplay(p);
addNFC(p, "/sys/devices/platform/10970000.hsi2c/i2c-4/i2c-st21nfc/power_stats");
const std::string instance = std::string() + PowerStats::descriptor + "/default";
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());