Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68f4085e authored by Chris Phoenix's avatar Chris Phoenix Committed by Yifan Hong
Browse files

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
parent bb5a8380
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;