1 /*
2  * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #include "hdf_pin_entry_test.h"
10 #include "hdf_log.h"
11 #include "pin_test.h"
12 
13 #define HDF_LOG_TAG hdf_pin_entry_test
14 
HdfPinTestEntry(HdfTestMsg * msg)15 int32_t HdfPinTestEntry(HdfTestMsg *msg)
16 {
17     HDF_LOGD("HdfPinTestEntry: enter!");
18 
19     if (msg == NULL) {
20         HDF_LOGE("HdfPinTestEntry: msg is null!");
21         return HDF_FAILURE;
22     }
23 
24     msg->result = PinTestExecute(msg->subCmd);
25 
26     return HDF_SUCCESS;
27 }