aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/mediatek/S3203
diff options
context:
space:
mode:
authorMoyster <oysterized@gmail.com>2017-09-23 03:10:48 +0200
committerMoyster <oysterized@gmail.com>2017-09-23 03:10:48 +0200
commitb8d1e07edc8d57883bf4b6ca70228b5a9e6b98b2 (patch)
treeb9c284cc99fc24d884b4dedc7100e5881a35011f /drivers/input/touchscreen/mediatek/S3203
parentfa4d1db09a4946ad8ba42514687c6b8a3603d623 (diff)
downloadandroid_kernel_m2note-b8d1e07edc8d57883bf4b6ca70228b5a9e6b98b2.tar.gz
misc: replace __FUNCTION__ by __function__
result of : git grep -l '__FUNCTION__' | xargs sed -i 's/__FUNCTION__/__func__/g'
Diffstat (limited to 'drivers/input/touchscreen/mediatek/S3203')
-rw-r--r--drivers/input/touchscreen/mediatek/S3203/s3203_driver.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/input/touchscreen/mediatek/S3203/s3203_driver.c b/drivers/input/touchscreen/mediatek/S3203/s3203_driver.c
index 674f11929..da6b9a07f 100644
--- a/drivers/input/touchscreen/mediatek/S3203/s3203_driver.c
+++ b/drivers/input/touchscreen/mediatek/S3203/s3203_driver.c
@@ -627,7 +627,7 @@ static int RMI4_read_PDT(struct i2c_client *client)
if(i2c_transfer(client->adapter, msg, 2) < 0)
{
- printk("%s:%d: read RIM4 PDT error!\n",__FUNCTION__,__LINE__);
+ printk("%s:%d: read RIM4 PDT error!\n",__func__,__LINE__);
return -1;
}
@@ -647,7 +647,7 @@ static int RMI4_read_PDT(struct i2c_client *client)
if((m_PdtF01Common.m_CommandBase != fd_01.commandBase) || (m_PdtF34Flash.m_QueryBase != fd_34.queryBase))
{
- printk("%s:%d: RIM4 PDT has changed!!!\n",__FUNCTION__,__LINE__);
+ printk("%s:%d: RIM4 PDT has changed!!!\n",__func__,__LINE__);
ret = tpd_rmi4_read_pdt(ts);
if(ret < 0)
@@ -903,21 +903,21 @@ static int synaptics_download(struct i2c_client *client,const unsigned char *pgm
ret = RMI4_enable_program(client);
if( ret != 0)
{
- printk("%s:%d:RMI enable program error,return...\n",__FUNCTION__,__LINE__);
+ printk("%s:%d:RMI enable program error,return...\n",__func__,__LINE__);
goto error;
}
ret = RMI4_check_firmware(client,pgm_data);
if( ret != 0)
{
- printk("%s:%d:RMI check firmware error,return...\n",__FUNCTION__,__LINE__);
+ printk("%s:%d:RMI check firmware error,return...\n",__func__,__LINE__);
goto error;
}
ret = RMI4_program_firmware(client, pgm_data + 0x100);
if( ret != 0)
{
- printk("%s:%d:RMI program firmware error,return...",__FUNCTION__,__LINE__);
+ printk("%s:%d:RMI program firmware error,return...",__func__,__LINE__);
goto error;
}
@@ -926,7 +926,7 @@ static int synaptics_download(struct i2c_client *client,const unsigned char *pgm
error:
RMI4_disable_program_hw(client);
- printk("%s:%d:error,return ....",__FUNCTION__,__LINE__);
+ printk("%s:%d:error,return ....",__func__,__LINE__);
return -1;
}
@@ -947,14 +947,14 @@ static int i2c_update_firmware(struct i2c_client *client)
filp = filp_open(filename, O_RDONLY, S_IRUSR);
if (IS_ERR(filp))
{
- printk("%s: file %s filp_open error\n", __FUNCTION__,filename);
+ printk("%s: file %s filp_open error\n", __func__,filename);
set_fs(oldfs);
return -1;
}
if (!filp->f_op)
{
- printk("%s: File Operation Method Error\n", __FUNCTION__);
+ printk("%s: File Operation Method Error\n", __func__);
filp_close(filp, NULL);
set_fs(oldfs);
return -1;
@@ -963,7 +963,7 @@ static int i2c_update_firmware(struct i2c_client *client)
inode = filp->f_path.dentry->d_inode;
if (!inode)
{
- printk("%s: Get inode from filp failed\n", __FUNCTION__);
+ printk("%s: Get inode from filp failed\n", __func__);
filp_close(filp, NULL);
set_fs(oldfs);
return -1;
@@ -992,7 +992,7 @@ static int i2c_update_firmware(struct i2c_client *client)
/* read data */
if (filp->f_op->read(filp, buf, length, &filp->f_pos) != length)
{
- printk("%s: file read error\n", __FUNCTION__);
+ printk("%s: file read error\n", __func__);
filp_close(filp, NULL);
set_fs(oldfs);
vfree(buf);
@@ -1098,7 +1098,7 @@ static int tpd_local_init(void)
boot_mode = get_boot_mode();
if (boot_mode == 3) boot_mode = NORMAL_BOOT;
#endif
- TPD_DMESG("end %s, %d\n", __FUNCTION__, __LINE__);
+ TPD_DMESG("end %s, %d\n", __func__, __LINE__);
tpd_type_cap = 1;
return 0;
}