From 1136ae10b72265ed995c85b029fda7ec2bfe1ccf Mon Sep 17 00:00:00 2001 From: Zhang Date: Tue, 18 Oct 2022 09:10:55 +0000 Subject: [PATCH] update zh-cn/device-dev/driver/driver-hdf-message-management.md. Signed-off-by: Zhang --- zh-cn/device-dev/driver/driver-hdf-message-management.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/device-dev/driver/driver-hdf-message-management.md b/zh-cn/device-dev/driver/driver-hdf-message-management.md index e4f9046970..0475000a49 100644 --- a/zh-cn/device-dev/driver/driver-hdf-message-management.md +++ b/zh-cn/device-dev/driver/driver-hdf-message-management.md @@ -158,9 +158,9 @@ 3. 驱动上报事件。 ``` - int32_t SampleDriverDispatch(struct HdfDeviceObject *device, int cmdCode, struct HdfSBuf *data, struct HdfSBuf *reply) + int32_t SampleDriverDispatch(HdfDeviceIoClient *client, int cmdCode, struct HdfSBuf *data, struct HdfSBuf *reply) { ... // process api call here - return HdfDeviceSendEvent(deviceObject, cmdCode, data); + return HdfDeviceSendEvent(client->device, cmdCode, data); } ``` -- GitLab