From 6f8227e7644d818a5227d1fec827455450f3ec78 Mon Sep 17 00:00:00 2001 From: Yunhee Seo Date: Mon, 8 Apr 2024 21:49:38 +0900 Subject: 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: I2e9e39f6e6c03b9e1b0c06b83e086930f7c7e9e4 Signed-off-by: Yunhee Seo --- hw/board/board.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/hw/board/board.c b/hw/board/board.c index 75f1539..32c7b38 100644 --- a/hw/board/board.c +++ b/hw/board/board.c @@ -15,7 +15,7 @@ */ #define _GNU_SOURCE -#include +#include #include #include @@ -277,29 +277,29 @@ static int get_upgrade_status(int *status) 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; - board_funcs->clear_boot_mode = clear_boot_mode; - board_funcs->get_boot_mode = get_boot_mode; + device_board_funcs->clear_boot_mode = clear_boot_mode; + device_board_funcs->get_boot_mode = get_boot_mode; - board_funcs->get_current_partition = get_current_partition; - board_funcs->switch_partition = switch_partition; - board_funcs->set_partition_ab_cloned = set_partition_ab_cloned; - board_funcs->clear_partition_ab_cloned = clear_partition_ab_cloned; - board_funcs->get_partition_ab_cloned = get_partition_ab_cloned; - board_funcs->set_partition_status = set_partition_status; - board_funcs->get_partition_status = get_partition_status; + device_board_funcs->get_current_partition = get_current_partition; + device_board_funcs->switch_partition = switch_partition; + device_board_funcs->set_partition_ab_cloned = set_partition_ab_cloned; + device_board_funcs->clear_partition_ab_cloned = clear_partition_ab_cloned; + device_board_funcs->get_partition_ab_cloned = get_partition_ab_cloned; + device_board_funcs->set_partition_status = set_partition_status; + device_board_funcs->get_partition_status = get_partition_status; - board_funcs->set_upgrade_status = set_upgrade_status; - board_funcs->get_upgrade_status = get_upgrade_status; + device_board_funcs->set_upgrade_status = set_upgrade_status; + device_board_funcs->get_upgrade_status = get_upgrade_status; - *data = (void *)board_funcs; + *data = (void *)device_board_funcs; return 0; } -- cgit v1.2.3