diff options
author | Yunhee Seo <yuni.seo@samsung.com> | 2024-04-09 21:34:49 +0900 |
---|---|---|
committer | Yunhee Seo <yuni.seo@samsung.com> | 2024-04-09 21:34:49 +0900 |
commit | c2666ba2bec665de3267966abc78865eafff4652 (patch) | |
tree | e47f7afa63b2b5ea892f6c1b875b1e78f62adc77 | |
parent | 4ddeca2c4c7358837f4b1a3f621553c0516755c1 (diff) | |
download | device-c4-c2666ba2bec665de3267966abc78865eafff4652.tar.gz device-c4-c2666ba2bec665de3267966abc78865eafff4652.tar.bz2 device-c4-c2666ba2bec665de3267966abc78865eafff4652.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: I8162957b1006a2d03763c0fd2733a318ed90ae1a
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 2a7135e..acbb421 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> @@ -107,17 +107,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; } |