input: touchscreen: gt9xx: avoid clang warning

drivers/input/touchscreen/gt9xx/gt9xx_update.c:2744:19: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
 while ((ready == 0)) //Wait for measurement complete
         ~~~~~~^~~~

Change-Id: I6954c7cd8867e1d85d435a23ee857cd4e3c58b4b
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2019-06-24 10:47:11 +08:00
parent 586f045a76
commit a1a13306a4

View File

@@ -2741,7 +2741,7 @@ static u32 gup_clk_count_get(void)
s32 temp;
s8 buf[4];
while ((ready == 0)) //Wait for measurement complete
while (ready == 0) //Wait for measurement complete
{
i2c_read_bytes(i2c_connect_client, _bRO_MISCTL__MEA_RDY, buf, 1);
ready = buf[0];