mirror of
https://github.com/openharmony/drivers_adapter_khdf_linux.git
synced 2026-07-21 03:55:21 -04:00
!220 fix: fix UartRead test case failure, adjust and modify the method
Merge pull request !220 from 贾子扬/OpenHarmony-3.0-LTS
This commit is contained in:
@@ -437,6 +437,13 @@ static int32_t UartAdapterSetAttribute(struct UartHost *host, struct UartAttribu
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int32_t UartAdapterSetTransMode(struct UartHost *host, enum UartTransMode mode)
|
||||
{
|
||||
(void)host;
|
||||
(void)mode;
|
||||
return HDF_SUCCESS;
|
||||
}
|
||||
|
||||
static struct UartHostMethod g_uartHostMethod = {
|
||||
.Init = UartAdapterInit,
|
||||
.Deinit = UartAdapterDeInit,
|
||||
@@ -446,6 +453,7 @@ static struct UartHostMethod g_uartHostMethod = {
|
||||
.GetBaud = UartAdapterGetBaud,
|
||||
.SetAttribute = UartAdapterSetAttribute,
|
||||
.GetAttribute = UartAdapterGetAttribute,
|
||||
.SetTransMode = UartAdapterSetTransMode,
|
||||
};
|
||||
|
||||
static int32_t HdfUartBind(struct HdfDeviceObject *obj)
|
||||
|
||||
Reference in New Issue
Block a user