• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-2021 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 "mtd_core.h"
10 
MtdBlockOsInit(struct MtdDevice * mtdDevice)11 __attribute__((weak)) int32_t MtdBlockOsInit(struct MtdDevice *mtdDevice)
12 {
13     (void)mtdDevice;
14     return HDF_SUCCESS;
15 }
16 
MtdBlockOsUninit(struct MtdDevice * mtdDevice)17 __attribute__ ((weak)) void MtdBlockOsUninit(struct MtdDevice *mtdDevice)
18 {
19     (void)mtdDevice;
20 }
21 
MtdBlockInit(struct MtdDevice * mtdDevice)22 int32_t MtdBlockInit(struct MtdDevice *mtdDevice)
23 {
24     return MtdBlockOsInit(mtdDevice);
25 }
26 
MtdBlockUninit(struct MtdDevice * mtdDevice)27 void MtdBlockUninit(struct MtdDevice *mtdDevice)
28 {
29     MtdBlockOsUninit(mtdDevice);
30 }
31