mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "bootctrl HAL uses "default" service name" am: 9877cf296f
am: c68beb8712
Change-Id: Ifd8aba7ab5deb077f6dfc596ce5c6ae92cf5dc73
This commit is contained in:
@@ -78,14 +78,14 @@ Return<void> BootControl::getSuffix(uint32_t slot, getSuffix_cb _hidl_cb) {
|
||||
}
|
||||
|
||||
|
||||
IBootControl* HIDL_FETCH_IBootControl(const char* hal) {
|
||||
IBootControl* HIDL_FETCH_IBootControl(const char* /* hal */) {
|
||||
int ret = 0;
|
||||
boot_control_module_t* module = NULL;
|
||||
hw_module_t **hwm = reinterpret_cast<hw_module_t**>(&module);
|
||||
ret = hw_get_module(hal, const_cast<const hw_module_t**>(hwm));
|
||||
ret = hw_get_module(BOOT_CONTROL_HARDWARE_MODULE_ID, const_cast<const hw_module_t**>(hwm));
|
||||
if (ret)
|
||||
{
|
||||
ALOGE("hw_get_module %s failed: %d", hal, ret);
|
||||
ALOGE("hw_get_module %s failed: %d", BOOT_CONTROL_HARDWARE_MODULE_ID, ret);
|
||||
return nullptr;
|
||||
}
|
||||
module->init(module);
|
||||
|
||||
@@ -7,5 +7,5 @@ using ::android::hardware::boot::V1_0::IBootControl;
|
||||
using android::hardware::defaultPassthroughServiceImplementation;
|
||||
|
||||
int main (int /* argc */, char * /* argv */ []) {
|
||||
return defaultPassthroughServiceImplementation<IBootControl>("bootctrl");
|
||||
return defaultPassthroughServiceImplementation<IBootControl>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user