diff options
author | Yunhee Seo <yuni.seo@samsung.com> | 2024-04-08 21:49:38 +0900 |
---|---|---|
committer | Yunhee Seo <yuni.seo@samsung.com> | 2024-04-09 15:32:28 +0900 |
commit | 6f8227e7644d818a5227d1fec827455450f3ec78 (patch) | |
tree | 4f9a14772cb34f9788f29938c50039e932ca3f08 | |
parent | 93a1344e5db949ceed0ac89c095b82e22819dcb9 (diff) | |
download | device-rpi-6f8227e7644d818a5227d1fec827455450f3ec78.tar.gz device-rpi-6f8227e7644d818a5227d1fec827455450f3ec78.tar.bz2 device-rpi-6f8227e7644d818a5227d1fec827455450f3ec78.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: I2e9e39f6e6c03b9e1b0c06b83e086930f7c7e9e4
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
-rw-r--r-- | hw/board/board.c | 34 |
1 files 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 <hal/hal-board-interface.h> +#include <hal/hal-device-board-interface.h> #include <hal/hal-common-interface.h> #include <stdio.h> @@ -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; } |