board: Fix incorrect module naming 10/309410/1
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 9 Apr 2024 12:37:02 +0000 (21:37 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 9 Apr 2024 12:37:02 +0000 (21:37 +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: I93fa3ebf9b8473ca4067ce6f54cc9f97bc79b1a9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
hw/board/board.c

index e75539f909bf0eec5309362c6919f8f675952030..b398c77f219ed1b1edb2181b5f0a161a4fcc62eb 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;
 }