提交 1ff29451 编写于 作者: S s00442234

fix: Correct spelling mistakes

Signed-off-by: Ns00442234 <susha@huawei.com>
上级 daea4687
...@@ -274,7 +274,7 @@ int32_t I3cTestRequestIbi(void) ...@@ -274,7 +274,7 @@ int32_t I3cTestRequestIbi(void)
} }
ret = I3cRequestIbi(i3cHandle, 0x3F, TestI3cIbiFunc, 16); ret = I3cRequestIbi(i3cHandle, 0x3F, TestI3cIbiFunc, 16);
if (ret != 0) { if (ret != 0) {
HDF_LOGE("%s: Requset IBI failed!", __func__); HDF_LOGE("%s: Request IBI failed!", __func__);
return -1; return -1;
} }
......
...@@ -25,10 +25,10 @@ struct MmcCntlrOps { ...@@ -25,10 +25,10 @@ struct MmcCntlrOps {
int32_t (*setSdioIrq)(struct MmcCntlr *cntlr, bool enable); int32_t (*setSdioIrq)(struct MmcCntlr *cntlr, bool enable);
int32_t (*hardwareReset)(struct MmcCntlr *cntlr); int32_t (*hardwareReset)(struct MmcCntlr *cntlr);
int32_t (*systemInit)(struct MmcCntlr *cntlr); int32_t (*systemInit)(struct MmcCntlr *cntlr);
int32_t (*setEnhanceSrobe)(struct MmcCntlr *cntlr, bool enable); int32_t (*setEnhanceStrobe)(struct MmcCntlr *cntlr, bool enable);
int32_t (*switchVoltage)(struct MmcCntlr *cntlr, enum MmcVolt volt); int32_t (*switchVoltage)(struct MmcCntlr *cntlr, enum MmcVolt volt);
bool (*devReadOnly)(struct MmcCntlr *cntlr); bool (*devReadOnly)(struct MmcCntlr *cntlr);
bool (*devPluged)(struct MmcCntlr *cntlr); bool (*devPlugged)(struct MmcCntlr *cntlr);
bool (*devBusy)(struct MmcCntlr *cntlr); bool (*devBusy)(struct MmcCntlr *cntlr);
int32_t (*tune)(struct MmcCntlr *cntlr, uint32_t cmdCode); int32_t (*tune)(struct MmcCntlr *cntlr, uint32_t cmdCode);
int32_t (*rescanSdioDev)(struct MmcCntlr *cntlr); int32_t (*rescanSdioDev)(struct MmcCntlr *cntlr);
...@@ -47,10 +47,10 @@ struct MmcCntlrOps { ...@@ -47,10 +47,10 @@ struct MmcCntlrOps {
| setSdioIrq | **cntlr**: structure pointer to the MMC controller at the core layer.<br>**enable**: whether to enable Secure Digital Input Output (SDIO) interrupts.| HDF_STATUS| Enables or disables SDIO interrupts.| | setSdioIrq | **cntlr**: structure pointer to the MMC controller at the core layer.<br>**enable**: whether to enable Secure Digital Input Output (SDIO) interrupts.| HDF_STATUS| Enables or disables SDIO interrupts.|
| hardwareReset | **cntlr**: structure pointer to the MMC controller at the core layer.| HDF_STATUS| Resets hardware.| | hardwareReset | **cntlr**: structure pointer to the MMC controller at the core layer.| HDF_STATUS| Resets hardware.|
| systemInit | **cntlr**: structure pointer to the MMC controller at the core layer.| HDF_STATUS| Performs system initialization.| | systemInit | **cntlr**: structure pointer to the MMC controller at the core layer.| HDF_STATUS| Performs system initialization.|
| setEnhanceSrobe | **cntlr**: structure pointer to the MMC controller at the core layer.<br>**enable**: whether to enable the enhanced strobe feature.| HDF_STATUS| Sets the enhanced strobe feature.| | setEnhanceStrobe | **cntlr**: structure pointer to the MMC controller at the core layer.<br>**enable**: whether to enable the enhanced strobe feature.| HDF_STATUS| Sets the enhanced strobe feature.|
| switchVoltage | **cntlr**: structure pointer to the MMC controller at the core layer.<br>**volt**: voltage to set, which can be 3.3 V, 1.8 V, or 1.2 V.| HDF_STATUS| Sets the voltage.| | switchVoltage | **cntlr**: structure pointer to the MMC controller at the core layer.<br>**volt**: voltage to set, which can be 3.3 V, 1.8 V, or 1.2 V.| HDF_STATUS| Sets the voltage.|
| devReadOnly | **cntlr**: structure pointer to the MMC controller at the core layer.| Boolean value| Checks whether the device is read-only.| | devReadOnly | **cntlr**: structure pointer to the MMC controller at the core layer.| Boolean value| Checks whether the device is read-only.|
| cardPluged | **cntlr**: structure pointer to the MMC controller at the core layer.| Boolean value| Checks whether the device is removed.| | cardPlugged | **cntlr**: structure pointer to the MMC controller at the core layer.| Boolean value| Checks whether the device is removed.|
| devBusy | **cntlr**: structure pointer to the MMC controller at the core layer.| Boolean value| Checks whether the device is being used.| | devBusy | **cntlr**: structure pointer to the MMC controller at the core layer.| Boolean value| Checks whether the device is being used.|
| tune | **cntlr**: structure pointer to the MMC controller at the core layer.<br>**cmdCode**: command code of the uint32_t type.| HDF_STATUS| Tunes the oscillator circuit frequency.| | tune | **cntlr**: structure pointer to the MMC controller at the core layer.<br>**cmdCode**: command code of the uint32_t type.| HDF_STATUS| Tunes the oscillator circuit frequency.|
| rescanSdioDev | **cntlr**: structure pointer to the MMC controller at the core layer.| HDF_STATUS| Scans and adds an SDIO device.| | rescanSdioDev | **cntlr**: structure pointer to the MMC controller at the core layer.| HDF_STATUS| Scans and adds an SDIO device.|
...@@ -254,7 +254,7 @@ The following uses **himci.c** as an example to present the information required ...@@ -254,7 +254,7 @@ The following uses **himci.c** as an example to present the information required
uint32_t maxBlkNum; uint32_t maxBlkNum;
uint32_t maxBlkSize; uint32_t maxBlkSize;
uint32_t maxReqSize; uint32_t maxReqSize;
bool devPluged; bool devPlugged;
bool detecting; bool detecting;
void *priv; void *priv;
}; };
...@@ -273,10 +273,10 @@ The following uses **himci.c** as an example to present the information required ...@@ -273,10 +273,10 @@ The following uses **himci.c** as an example to present the information required
.setSdioIrq = HimciSetSdioIrq, .setSdioIrq = HimciSetSdioIrq,
.hardwareReset = HimciHardwareReset, .hardwareReset = HimciHardwareReset,
.systemInit = HimciSystemInit, .systemInit = HimciSystemInit,
.setEnhanceSrobe= HimciSetEnhanceSrobe, .setEnhanceStrobe= HimciSetEnhanceStrobe,
.switchVoltage = HimciSwitchVoltage, .switchVoltage = HimciSwitchVoltage,
.devReadOnly = HimciDevReadOnly, .devReadOnly = HimciDevReadOnly,
.devPluged = HimciCardPluged, .devPlugged = HimciCardPlugged,
.devBusy = HimciDevBusy, .devBusy = HimciDevBusy,
.tune = HimciTune, .tune = HimciTune,
.rescanSdioDev = HimciRescanSdioDev, .rescanSdioDev = HimciRescanSdioDev,
......
...@@ -25,10 +25,10 @@ struct MmcCntlrOps { ...@@ -25,10 +25,10 @@ struct MmcCntlrOps {
int32_t (*setSdioIrq)(struct MmcCntlr *cntlr, bool enable); int32_t (*setSdioIrq)(struct MmcCntlr *cntlr, bool enable);
int32_t (*hardwareReset)(struct MmcCntlr *cntlr); int32_t (*hardwareReset)(struct MmcCntlr *cntlr);
int32_t (*systemInit)(struct MmcCntlr *cntlr); int32_t (*systemInit)(struct MmcCntlr *cntlr);
int32_t (*setEnhanceSrobe)(struct MmcCntlr *cntlr, bool enable); int32_t (*setEnhanceStrobe)(struct MmcCntlr *cntlr, bool enable);
int32_t (*switchVoltage)(struct MmcCntlr *cntlr, enum MmcVolt volt); int32_t (*switchVoltage)(struct MmcCntlr *cntlr, enum MmcVolt volt);
bool (*devReadOnly)(struct MmcCntlr *cntlr); bool (*devReadOnly)(struct MmcCntlr *cntlr);
bool (*devPluged)(struct MmcCntlr *cntlr); bool (*devPlugged)(struct MmcCntlr *cntlr);
bool (*devBusy)(struct MmcCntlr *cntlr); bool (*devBusy)(struct MmcCntlr *cntlr);
int32_t (*tune)(struct MmcCntlr *cntlr, uint32_t cmdCode); int32_t (*tune)(struct MmcCntlr *cntlr, uint32_t cmdCode);
int32_t (*rescanSdioDev)(struct MmcCntlr *cntlr); int32_t (*rescanSdioDev)(struct MmcCntlr *cntlr);
...@@ -47,10 +47,10 @@ struct MmcCntlrOps { ...@@ -47,10 +47,10 @@ struct MmcCntlrOps {
| setSdioIrq | cntlr:核心层结构体指针,MMC控制器<br>enable:布尔值,控制中断 | HDF_STATUS相关状态 | 使能/去使能SDIO中断 | | setSdioIrq | cntlr:核心层结构体指针,MMC控制器<br>enable:布尔值,控制中断 | HDF_STATUS相关状态 | 使能/去使能SDIO中断 |
| hardwareReset | cntlr:核心层结构体指针,MMC控制器 | HDF_STATUS相关状态 | 复位硬件 | | hardwareReset | cntlr:核心层结构体指针,MMC控制器 | HDF_STATUS相关状态 | 复位硬件 |
| systemInit | cntlr:核心层结构体指针,MMC控制器 | HDF_STATUS相关状态 | 系统初始化 | | systemInit | cntlr:核心层结构体指针,MMC控制器 | HDF_STATUS相关状态 | 系统初始化 |
| setEnhanceSrobe | cntlr:核心层结构体指针,MMC控制器<br>enable:布尔值,设置功能 | HDF_STATUS相关状态 | 设置增强选通 | | setEnhanceStrobe | cntlr:核心层结构体指针,MMC控制器<br>enable:布尔值,设置功能 | HDF_STATUS相关状态 | 设置增强选通 |
| switchVoltage | cntlr:核心层结构体指针,MMC控制器<br>volt:枚举值,电压值(3.3,1.8,1.2V) | HDF_STATUS相关状态 | 设置电压值 | | switchVoltage | cntlr:核心层结构体指针,MMC控制器<br>volt:枚举值,电压值(3.3,1.8,1.2V) | HDF_STATUS相关状态 | 设置电压值 |
| devReadOnly | cntlr:核心层结构体指针,MMC控制器 | 布尔值 | 检验设备是否只读 | | devReadOnly | cntlr:核心层结构体指针,MMC控制器 | 布尔值 | 检验设备是否只读 |
| cardPluged | cntlr:核心层结构体指针,MMC控制器 | 布尔值 | 检验设备是否拔出 | | cardPlugged | cntlr:核心层结构体指针,MMC控制器 | 布尔值 | 检验设备是否拔出 |
| devBusy | cntlr:核心层结构体指针,MMC控制器 | 布尔值 | 检验设备是否忙碌 | | devBusy | cntlr:核心层结构体指针,MMC控制器 | 布尔值 | 检验设备是否忙碌 |
| tune | cntlr:核心层结构体指针,MMC控制器<br>cmdCode:uint32_t,命令代码 | HDF_STATUS相关状态 | 调谐 | | tune | cntlr:核心层结构体指针,MMC控制器<br>cmdCode:uint32_t,命令代码 | HDF_STATUS相关状态 | 调谐 |
| rescanSdioDev | cntlr:核心层结构体指针,MMC控制器 | HDF_STATUS相关状态 | 扫描并添加SDIO设备 | | rescanSdioDev | cntlr:核心层结构体指针,MMC控制器 | HDF_STATUS相关状态 | 扫描并添加SDIO设备 |
...@@ -254,7 +254,7 @@ MMC模块适配的三个必选环节是实例化驱动入口,配置属性文 ...@@ -254,7 +254,7 @@ MMC模块适配的三个必选环节是实例化驱动入口,配置属性文
uint32_t maxBlkNum; uint32_t maxBlkNum;
uint32_t maxBlkSize; uint32_t maxBlkSize;
uint32_t maxReqSize; uint32_t maxReqSize;
bool devPluged; bool devPlugged;
bool detecting; bool detecting;
void *priv; void *priv;
}; };
...@@ -273,10 +273,10 @@ MMC模块适配的三个必选环节是实例化驱动入口,配置属性文 ...@@ -273,10 +273,10 @@ MMC模块适配的三个必选环节是实例化驱动入口,配置属性文
.setSdioIrq = HimciSetSdioIrq, .setSdioIrq = HimciSetSdioIrq,
.hardwareReset = HimciHardwareReset, .hardwareReset = HimciHardwareReset,
.systemInit = HimciSystemInit, .systemInit = HimciSystemInit,
.setEnhanceSrobe= HimciSetEnhanceSrobe, .setEnhanceStrobe= HimciSetEnhanceStrobe,
.switchVoltage = HimciSwitchVoltage, .switchVoltage = HimciSwitchVoltage,
.devReadOnly = HimciDevReadOnly, .devReadOnly = HimciDevReadOnly,
.devPluged = HimciCardPluged, .devPlugged = HimciCardPlugged,
.devBusy = HimciDevBusy, .devBusy = HimciDevBusy,
.tune = HimciTune, .tune = HimciTune,
.rescanSdioDev = HimciRescanSdioDev, .rescanSdioDev = HimciRescanSdioDev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册