diff options
author | Yunhee Seo <yuni.seo@samsung.com> | 2024-03-18 16:57:09 +0900 |
---|---|---|
committer | Yunhee Seo <yuni.seo@samsung.com> | 2024-03-18 16:57:09 +0900 |
commit | b15a79f61e0f35b492ea4b48c2a6a2d7bcb9523f (patch) | |
tree | eba20e45c89665e4b65694db063b25c8575c1bdc | |
parent | 2e2255b053329e6df3bc77640e4e62caeb09c91c (diff) | |
download | device-rpi-b15a79f61e0f35b492ea4b48c2a6a2d7bcb9523f.tar.gz device-rpi-b15a79f61e0f35b492ea4b48c2a6a2d7bcb9523f.tar.bz2 device-rpi-b15a79f61e0f35b492ea4b48c2a6a2d7bcb9523f.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: I6fc128c1e305dca0f4b2e1137b21f9fffb8f1347
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 f397446..ede269a 100644 --- a/hw/display/display.c +++ b/hw/display/display.c @@ -23,7 +23,7 @@ #include <errno.h> #include <linux/limits.h> -#include <hal/device/hal-display-interface.h> +#include <hal/device/hal-device-display-interface.h> #include <hal/hal-common-interface.h> #include <libsyscommon/file.h> @@ -100,17 +100,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; } |