mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
FG:cw2217 Remove the redundant msleep in the read i2c operation
For fg driver, i2c reads will be called very frequently, the redundant msleep causes system loss and a large number of task scheduling Change-Id: I7237ea17cf1ee92069046beeda75a67e8bbff7a6 Signed-off-by: liuyc20 <liuyc20@lenovo.com> Reviewed-on: https://gerrit.mot.com/2136133 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai <chailu1@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
3086dfec24
commit
98374fea4d
1 changed files with 0 additions and 1 deletions
|
|
@ -170,7 +170,6 @@ static int cw_read_word(struct i2c_client *client, unsigned char reg, unsigned c
|
|||
unsigned int temp_val_buff;
|
||||
unsigned int temp_val_second;
|
||||
|
||||
msleep(1);
|
||||
ret = i2c_smbus_read_i2c_block_data( client, reg, 2, reg_val );
|
||||
if (ret < 0)
|
||||
printk("IIC error %d\n", ret);
|
||||
|
|
|
|||
Loading…
Reference in a new issue