mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-07-18 15:54:30 -04:00
!15 轻内核VFS层重构,添加路径缓存
Merge pull request !15 from 野生毛霉君/noEmployeeNum_ChangeID_13306380_wangchenyang
This commit is contained in:
@@ -35,7 +35,7 @@ uint32_t TouchPoll(struct file *filep, InputDevice *inputDev, poll_table *wait);
|
||||
static int32_t InputDevIoctl(struct file *filep, int32_t cmd, unsigned long arg)
|
||||
{
|
||||
int32_t ret;
|
||||
InputDevice *inputdev = (InputDevice *)filep->f_inode->i_private;
|
||||
InputDevice *inputdev = (InputDevice *)((struct drv_data*)filep->f_vnode->data)->priv;
|
||||
if (inputdev == NULL) {
|
||||
return HDF_FAILURE;
|
||||
}
|
||||
@@ -54,7 +54,7 @@ static int32_t InputDevIoctl(struct file *filep, int32_t cmd, unsigned long arg)
|
||||
|
||||
static int32_t InputDevOpen(struct file *filep)
|
||||
{
|
||||
InputDevice *inputdev = (InputDevice *)filep->f_inode->i_private;
|
||||
InputDevice *inputdev = (InputDevice *)((struct drv_data*)filep->f_vnode->data)->priv;
|
||||
if (inputdev == NULL) {
|
||||
HDF_LOGE("%s: filep is null", __func__);
|
||||
return HDF_FAILURE;
|
||||
@@ -64,7 +64,7 @@ static int32_t InputDevOpen(struct file *filep)
|
||||
|
||||
static int32_t InputDevClose(struct file *filep)
|
||||
{
|
||||
InputDevice *inputdev = (InputDevice *)filep->f_inode->i_private;
|
||||
InputDevice *inputdev = (InputDevice *)((struct drv_data*)filep->f_vnode->data)->priv;
|
||||
if (inputdev == NULL) {
|
||||
HDF_LOGE("%s: inputdev is null", __func__);
|
||||
return HDF_FAILURE;
|
||||
@@ -76,7 +76,7 @@ static int32_t InputDevClose(struct file *filep)
|
||||
static int32_t InputDevPoll(struct file *filep, poll_table *wait)
|
||||
{
|
||||
uint32_t pollMask = 0;
|
||||
InputDevice *inputdev = (InputDevice *)filep->f_inode->i_private;
|
||||
InputDevice *inputdev = (InputDevice *)((struct drv_data*)filep->f_vnode->data)->priv;
|
||||
switch (inputdev->devType) {
|
||||
case INDEV_TYPE_TOUCH:
|
||||
pollMask = TouchPoll(filep, inputdev, wait);
|
||||
|
||||
@@ -104,7 +104,7 @@ int32_t TouchIoctl(InputDevice *inputdev, int32_t cmd, unsigned long arg)
|
||||
uint32_t TouchPoll(FAR struct file *filep, InputDevice *inputDev, poll_table *wait)
|
||||
{
|
||||
uint32_t pollMask = 0;
|
||||
InputDevice *inputdev = (InputDevice *)filep->f_inode->i_private;
|
||||
InputDevice *inputdev = (InputDevice *)((struct drv_data*)filep->f_vnode->data)->priv;
|
||||
if (inputdev == NULL) {
|
||||
HDF_LOGE("%s: inputdev is null", __func__);
|
||||
return pollMask;
|
||||
|
||||
Reference in New Issue
Block a user