From 68f4085e0707e34bfbd88a0d06062d46b7c05204 Mon Sep 17 00:00:00 2001 From: Chris Phoenix Date: Mon, 23 Jan 2017 14:49:09 -0800 Subject: [PATCH] health HAL uses "default" service name The getService() and registerAsService() methods of interface objects now have default parameters of "default" for the service name. HALs will not have to use any service name unless they want to register more than one service. Test: builds Bug: 33844934 Change-Id: I9a1fd3ba598bf058b6212bd416ecdf90ea329539 --- healthd/healthd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthd/healthd.cpp b/healthd/healthd.cpp index cae6c4c3c..ed1971a97 100644 --- a/healthd/healthd.cpp +++ b/healthd/healthd.cpp @@ -82,7 +82,7 @@ void healthd_board_init(struct healthd_config *config) { // Initialize the board HAL - Equivalent of healthd_board_init(config) // in charger/recovery mode. - gHealth = IHealth::getService("health"); + gHealth = IHealth::getService(); if (gHealth == nullptr) { KLOG_WARNING(LOG_TAG, "unable to get HAL interface, using defaults\n"); return;