Description:vfs refactoring

Feature or Bugfix:Feature
Binary Source:Huawei
PrivateCode(Yes/No):Yes

Change-Id: I175d2648bc6f9078c34de2c0a5c93fda10b86c47
ChangeID:13306380
This commit is contained in:
wangchenyang
2021-02-01 16:36:41 +08:00
committed by mamingshuai
parent 59ce11f6a8
commit 42c168fb8f
2 changed files with 5 additions and 5 deletions
@@ -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);
+1 -1
View File
@@ -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;