From 7b4f8ae45a48139ff39a81c6fb937063e8b97757 Mon Sep 17 00:00:00 2001 From: Yunhee Seo Date: Tue, 9 Apr 2024 18:03:41 +0900 Subject: [PATCH] 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 --- hw/board/board.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; } -- 2.34.1