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 e4f9046970d8ec4e0dc60abacbfdf4be3010f37a..0475000a493c738fbc677a91cbe9b5b7cba2680d 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); } ```