Skip to content

Commit

Permalink
Focal-Tech: Adapt to New Code Format
Browse files Browse the repository at this point in the history
For reference:
mncoppola/suterusu#9

Signed-off-by: Shoaib0597 <[email protected]>
  • Loading branch information
Shoaib0597 committed Aug 2, 2018
1 parent e36bfc7 commit eba04b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/input/touchscreen/ft5xx/focaltech_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -2462,7 +2462,7 @@ static int fts_GetFirmwareSize(char *firmware_name)
pr_err("error occured while opening file %s.\n", filepath);
return -EIO;
}
inode = pfile->f_dentry->d_inode;
inode = pfile->f_path.dentry->d_inode;
magic = inode->i_sb->s_magic;
fsize = inode->i_size;
filp_close(pfile, NULL);
Expand Down Expand Up @@ -2499,7 +2499,7 @@ static int fts_ReadFirmware(char *firmware_name,unsigned char *firmware_buf)
pr_err("error occured while opening file %s.\n", filepath);
return -EIO;
}
inode = pfile->f_dentry->d_inode;
inode = pfile->f_path.dentry->d_inode;
magic = inode->i_sb->s_magic;
fsize = inode->i_size;
old_fs = get_fs();
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/ft5xx/focaltech_gesture.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ unsigned short coordinate_y[150] = {0};
#ifdef CONFIG_FT5XX_TGESTURE_FUNCTION
static int fts_check_gesture(int gesture_id)
{
int result;
int result = 0;
switch(gesture_id) {
case GESTURE_LEFT:
result = KEY_GESTURE_LEFT;
Expand Down

0 comments on commit eba04b7

Please sign in to comment.