From 4e582eb6b3010a80b59d170a674d139810de8438 Mon Sep 17 00:00:00 2001 From: xianbing Zhu Date: Wed, 28 Feb 2024 14:50:31 +0800 Subject: [PATCH] i2c-hid: fix i2-hid retry bugs Before it was static value. Signed-off-by: xianbing Zhu --- drivers/hid/i2c-hid/i2c-hid-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index 27a23d65c..6ab5a7a86 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -262,7 +262,7 @@ static int __i2c_hid_command(struct i2c_client *client, if (wait) set_bit(I2C_HID_RESET_PENDING, &ihid->flags); - static int retry = 10; + int retry = 10; while(retry) { ret = i2c_transfer(client->adapter, msg, msg_num);