diff options
author | Yunhee Seo <yuni.seo@samsung.com> | 2024-04-09 17:28:23 +0900 |
---|---|---|
committer | Yunhee Seo <yuni.seo@samsung.com> | 2024-04-09 17:28:23 +0900 |
commit | ad3fe20420fbd86480f4bf0f7db9a9332b089b17 (patch) | |
tree | b97bd4b14add5d6f1a3c74b04d903c625780be75 | |
parent | 9993612d423071117c91ce5016dbfe1457bc1d2c (diff) | |
download | device-vim3-ad3fe20420fbd86480f4bf0f7db9a9332b089b17.tar.gz device-vim3-ad3fe20420fbd86480f4bf0f7db9a9332b089b17.tar.bz2 device-vim3-ad3fe20420fbd86480f4bf0f7db9a9332b089b17.zip |
display: Fix incorrect module naming
According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "display" but "device-display".
Change-Id: I9a62c21d598773c6fb98b8fa5e875c0b17b56bd3
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
-rw-r--r-- | hw/display/display.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/hw/display/display.c b/hw/display/display.c index 3a10c2b..c61a2ab 100644 --- a/hw/display/display.c +++ b/hw/display/display.c @@ -23,7 +23,7 @@ #include <errno.h> #include <linux/limits.h> -#include <hal/hal-display-interface.h> +#include <hal/hal-device-display-interface.h> #include <hal/hal-common-interface.h> #include <libsyscommon/file.h> @@ -108,17 +108,17 @@ static int display_set_brightness(int brightness) static int display_init(void **data) { - hal_backend_display_funcs *display_funcs; + hal_backend_device_display_funcs *device_display_funcs; - display_funcs = calloc(1, sizeof(hal_backend_display_funcs)); - if (!display_funcs) + device_display_funcs = calloc(1, sizeof(hal_backend_device_display_funcs)); + if (!device_display_funcs) return -ENOMEM; - display_funcs->get_max_brightness = display_get_max_brightness; - display_funcs->get_brightness = display_get_brightness; - display_funcs->set_brightness = display_set_brightness; + device_display_funcs->get_max_brightness = display_get_max_brightness; + device_display_funcs->get_brightness = display_get_brightness; + device_display_funcs->set_brightness = display_set_brightness; - *data = (void *)display_funcs; + *data = (void *)device_display_funcs; return 0; } |