board: renaming get_device_serial_number 64/259764/2 accepted/tizen/unified/20210615.120346 submit/tizen/20210614.021455
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 14 Jun 2021 01:40:35 +0000 (10:40 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 14 Jun 2021 01:55:37 +0000 (10:55 +0900)
Change-Id: I5e2afe3e918e7f272bca6669e19dc76e2397e9d9
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
haltest/board.cpp
include/backend/hal-board-interface.h
include/hal-board.h
src/board.c
src/usb_gadget.c

index b1acd07..b28437a 100644 (file)
@@ -21,7 +21,7 @@ TEST_F(BOARD, GetDeviceSerialP)
        int ret_val;
        char *serial = nullptr;
 
-       ret_val = hal_device_board_get_device_serial(&serial);
+       ret_val = hal_device_board_get_device_serial_number(&serial);
        if (ret_val == -ENODEV) {
                SKIP_MESSAGE("Not supported HAL");
                return;
index 5948232..560105e 100644 (file)
@@ -24,7 +24,7 @@ extern "C" {
 
 typedef struct _hal_backend_board_funcs {
        /* Serial number of this device */
-       int (*get_device_serial)(char **serial);
+       int (*get_device_serial_number)(char **serial);
        int (*get_device_revision)(int *revision);
 } hal_backend_board_funcs;
 
index a090c9e..6a9b9a0 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
 
 int hal_device_board_get_backend(void);
 int hal_device_board_put_backend(void);
-int hal_device_board_get_device_serial(char **serial);
+int hal_device_board_get_device_serial_number(char **serial);
 int hal_device_board_get_device_revision(int *revision);
 
 #ifdef __cplusplus
index a9321bb..b145b64 100644 (file)
@@ -58,7 +58,7 @@ int hal_device_board_put_backend(void)
        return 0;
 }
 
-int hal_device_board_get_device_serial(char **serial)
+int hal_device_board_get_device_serial_number(char **serial)
 {
        int ret ;
 
@@ -68,10 +68,10 @@ int hal_device_board_get_device_serial(char **serial)
        }
 
        if (!hal_board_funcs ||
-           !hal_board_funcs->get_device_serial)
+           !hal_board_funcs->get_device_serial_number)
                return -ENODEV;
 
-       return hal_board_funcs->get_device_serial(serial);
+       return hal_board_funcs->get_device_serial_number(serial);
 }
 
 int hal_device_board_get_device_revision(int *revision)
index bf12768..5db5509 100644 (file)
@@ -51,7 +51,7 @@ static int get_board_serial(hal_backend_usb_gadget_funcs *usb_gadget_funcs)
        if (!usb_gadget_funcs)
                return -EINVAL;
 
-       if (hal_device_board_get_device_serial(&board_serial))
+       if (hal_device_board_get_device_serial_number(&board_serial))
                _E("Failed to get board serial for USB");
 
        if (!board_serial)