summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunhee Seo <yuni.seo@samsung.com>2024-04-09 21:37:02 +0900
committerYunhee Seo <yuni.seo@samsung.com>2024-04-09 21:37:02 +0900
commit1d60541b8ad00958ac91be141c1e88559ec90173 (patch)
tree49ced9d65d2d2848d5e6f77e3c738ac8df29824d
parent90438123dfda9f60eac4a7fce7b917384eceed11 (diff)
downloaddevice-c4-1d60541b8ad00958ac91be141c1e88559ec90173.tar.gz
device-c4-1d60541b8ad00958ac91be141c1e88559ec90173.tar.bz2
device-c4-1d60541b8ad00958ac91be141c1e88559ec90173.zip
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: I93fa3ebf9b8473ca4067ce6f54cc9f97bc79b1a9 Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
-rw-r--r--hw/board/board.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/board/board.c b/hw/board/board.c
index e75539f..b398c77 100644
--- a/hw/board/board.c
+++ b/hw/board/board.c
@@ -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;
}