board: Fix incorrect module naming 93/309393/1
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 9 Apr 2024 09:03:41 +0000 (18:03 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 9 Apr 2024 09:03:41 +0000 (18:03 +0900)
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 <yuni.seo@samsung.com>
hw/board/board.c

index b8fcee35f95fd1b4b228992080bdbd3210713628..e26985dc5342c6df5d503b2fbab59de30c3fcb10 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #define _GNU_SOURCE
-#include <hal/hal-board-interface.h>
+#include <hal/hal-device-board-interface.h>
 #include <hal/hal-common-interface.h>
 
 #include <stdio.h>
@@ -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;
 }