From 2e13df96e75c71a34a9672ac71c2c1c88d685ba8 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Mon, 7 Jun 2021 16:59:32 +0900 Subject: [PATCH] tdm_display: return the module information at use_hal_tdm case. The two api can return the values at use_hal_tdm case. - tdm_display_get_backend_info - tdm_module_get_info Change-Id: Ie71280a15cbcf7019054bc3ae60ba3eb41dba52b --- src/tdm_display.c | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/src/tdm_display.c b/src/tdm_display.c index a7a44f7..46cd486 100644 --- a/src/tdm_display.c +++ b/src/tdm_display.c @@ -969,18 +969,17 @@ tdm_display_get_backend_info(tdm_display *dpy, const char **name, break; } - if (!private_module->use_hal_tdm) { - assert(module_data != NULL); - - if (name) - *name = module_data->name; - if (vendor) - *vendor = module_data->vendor; - if (major) - *major = TDM_BACKEND_GET_ABI_MAJOR(module_data->abi_version); - if (minor) - *minor = TDM_BACKEND_GET_ABI_MINOR(module_data->abi_version); - } + assert(module_data != NULL); + + if (name) + *name = module_data->name; + if (vendor) + *vendor = module_data->vendor; + if (major) + *major = TDM_BACKEND_GET_ABI_MAJOR(module_data->abi_version); + if (minor) + *minor = TDM_BACKEND_GET_ABI_MINOR(module_data->abi_version); + _pthread_mutex_unlock(&private_display->lock); return ret; @@ -1014,16 +1013,14 @@ tdm_module_get_info(tdm_module *module, const char **name, module_data = private_module->module_data; - if (!private_module->use_hal_tdm) { - if (name) - *name = module_data->name; - if (vendor) - *vendor = module_data->vendor; - if (major) - *major = TDM_BACKEND_GET_ABI_MAJOR(module_data->abi_version); - if (minor) - *minor = TDM_BACKEND_GET_ABI_MINOR(module_data->abi_version); - } + if (name) + *name = module_data->name; + if (vendor) + *vendor = module_data->vendor; + if (major) + *major = TDM_BACKEND_GET_ABI_MAJOR(module_data->abi_version); + if (minor) + *minor = TDM_BACKEND_GET_ABI_MINOR(module_data->abi_version); _pthread_mutex_unlock(&private_display->lock); -- 2.7.4