bootctrl 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; verify HAL still works

Bug: 33844934

Change-Id: I86c44aaaaf663e774c631a469ebf2b81619f89c4
This commit is contained in:
Chris Phoenix
2017-01-20 11:34:00 -08:00
parent 3735bb6d38
commit 0f93a11c9a
+1 -1
View File
@@ -147,7 +147,7 @@ int main(int argc, char** argv) {
LOG(INFO) << "Started with arg " << i << ": " << argv[i];
}
sp<IBootControl> module = IBootControl::getService("bootctrl");
sp<IBootControl> module = IBootControl::getService();
if (module == nullptr) {
LOG(ERROR) << "Error getting bootctrl module.";
return -1;