未验证 提交 caab22b3 编写于 作者: Z Zhang 提交者: Gitee

update zh-cn/device-dev/driver/driver-hdf-sample.md.

Signed-off-by: NZhang <zhangfengxi@huawei.com>
上级 1136ae10
......@@ -64,7 +64,7 @@ root {
#define SAMPLE_WRITE_READ 123
int32_t HdfSampleDriverDispatch(
struct HdfDeviceIoClient *deviceObject, int id, struct HdfSBuf *data, struct HdfSBuf *reply)
struct HdfDeviceIoClient *client, int id, struct HdfSBuf *data, struct HdfSBuf *reply)
{
HDF_LOGE("%s: received cmd %d", __func__, id);
if (id == SAMPLE_WRITE_READ) {
......@@ -75,7 +75,7 @@ int32_t HdfSampleDriverDispatch(
if (!HdfSbufWriteInt32(reply, INT32_MAX)) {
HDF_LOGE("%s: reply int32 fail", __func__);
}
return HdfDeviceSendEvent(deviceObject, id, data);
return HdfDeviceSendEvent(client->device, id, data);
}
return HDF_FAILURE;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册