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:
liuyc20 2021-12-06 17:05:15 +08:00 • committed by Yuecai Liu
commit 98374fea4d

View file

@ -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);