From: Yunhee Seo Date: Tue, 9 Apr 2024 09:03:41 +0000 (+0900) Subject: board: Fix incorrect module naming X-Git-Tag: accepted/tizen/unified/20240614.085003~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F309393%2F1;p=platform%2Fhal%2Fbackend%2Fvim3%2Fdevice-vim3.git board: 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 "board" but "device-board". Change-Id: I98c8f7e2999c9235428e4bacd482db5ad9b481d7 Signed-off-by: Yunhee Seo --- diff --git a/hw/board/board.c b/hw/board/board.c index b8fcee3..e26985d 100644 --- a/hw/board/board.c +++ b/hw/board/board.c @@ -15,7 +15,7 @@ */ #define _GNU_SOURCE -#include +#include #include #include @@ -100,15 +100,15 @@ static int get_device_serial_number(char *buffer, int len) static int board_init(void **data) { - hal_backend_board_funcs *board_funcs; + hal_backend_device_board_funcs *device_board_funcs; - board_funcs = calloc(1, sizeof(hal_backend_board_funcs)); - if (!board_funcs) + device_board_funcs = calloc(1, sizeof(hal_backend_device_board_funcs)); + if (!device_board_funcs) return -ENOMEM; - board_funcs->get_device_serial_number = get_device_serial_number; + device_board_funcs->get_device_serial_number = get_device_serial_number; - *data = (void *)board_funcs; + *data = (void *)device_board_funcs; return 0; }