diff --git a/include/core/hdf_device_desc.h b/include/core/hdf_device_desc.h index ed8f2d62230e62fd06826d37c75d260fdb550b64..9c64aa6f7f0a6640ac3528e593dd119f672b35e3 100644 --- a/include/core/hdf_device_desc.h +++ b/include/core/hdf_device_desc.h @@ -94,7 +94,7 @@ struct HdfDeviceObject { const struct DeviceResourceNode *property; DeviceClass deviceClass; /** Pointer to the private data of the device */ - void *private; + void *priv; }; /** diff --git a/model/input/driver/hdf_touch.c b/model/input/driver/hdf_touch.c index 04daecad186441af5eb68653c2ef2a41e3fa1949..239c711d58779797f5518736fd64854599bbfdc7 100644 --- a/model/input/driver/hdf_touch.c +++ b/model/input/driver/hdf_touch.c @@ -593,7 +593,7 @@ static int32_t HdfTouchDispatch(struct HdfDeviceIoClient *client, int32_t cmd, return HDF_FAILURE; } - touchDriver = (TouchDriver *)client->device->private; + touchDriver = (TouchDriver *)client->device->priv; if (touchDriver == NULL) { HDF_LOGE("%s: touchDriver is null", __func__); return HDF_FAILURE; @@ -775,7 +775,7 @@ static int32_t HdfTouchDriverProbe(struct HdfDeviceObject *device) touchDriver->hdfTouchDev = device; touchDriver->boardCfg = boardCfg; AddTouchDriver(touchDriver); - device->private = (void *)touchDriver; + device->priv = (void *)touchDriver; HDF_LOGI("%s: %s exit succ", __func__, boardCfg->attr.devName); return HDF_SUCCESS; } @@ -795,11 +795,11 @@ static void HdfTouchDriverRelease(struct HdfDeviceObject *device) InputDevice *inputDev = NULL; int32_t i; - if (device == NULL || device->private == NULL) { + if (device == NULL || device->priv == NULL) { HDF_LOGE("%s: param is null", __func__); return; } - driver = device->private; + driver = device->priv; for (i = 0; i < MAX_TOUCH_DEVICE; i++) { if (g_touchDriverList[i] == driver) {