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

Commit 51c3b50c authored by Chris Phoenix's avatar Chris Phoenix
Browse files

thermal 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: Id35c5eac388dada951b2f3708554a84337a500c9
parent 8652d719
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ float finalizeTemperature(float temperature) {
static void nativeInit(JNIEnv* env, jobject obj) {
    // TODO(b/31632518)
    if (gThermalModule == nullptr) {
        gThermalModule = IThermal::getService("thermal");
        gThermalModule = IThermal::getService();
    }

    if (gThermalModule == nullptr) {