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;
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;
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
return 0;
}
-int hal_device_board_get_device_serial(char **serial)
+int hal_device_board_get_device_serial_number(char **serial)
{
int ret ;
}
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)
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)