summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authorChris Phoenix <cphoenix@google.com>2017-01-23 14:49:09 -0800
committerYifan Hong <elsk@google.com>2017-02-23 19:32:29 +0000
commit68f4085e0707e34bfbd88a0d06062d46b7c05204 (patch)
treea19c32d0352c604f16a3fa85b206342269862de4 /healthd
parentbb5a8380b0e35d3b7ac45ccf326fed130f0beb89 (diff)
downloadsystem_core-68f4085e0707e34bfbd88a0d06062d46b7c05204.tar.gz
system_core-68f4085e0707e34bfbd88a0d06062d46b7c05204.tar.bz2
system_core-68f4085e0707e34bfbd88a0d06062d46b7c05204.zip
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
Diffstat (limited to 'healthd')
-rw-r--r--healthd/healthd.cpp2
1 files changed, 1 insertions, 1 deletions
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;