mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user