[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <000601d55d49$05878160$10968420$@emc.com.tw>
Date: Wed, 28 Aug 2019 10:33:46 +0800
From: "Johnny.Chuang" <johnny.chuang@....com.tw>
To: "'Dmitry Torokhov'" <dmitry.torokhov@...il.com>,
<linux-kernel@...r.kernel.org>, <linux-input@...r.kernel.org>,
STRD2-莊佳霖 <johnny.chuang@....com.tw>,
STRD2-蔡惠嬋 <jennifer.tsai@....com.tw>
Cc: STRD2-陳崇明經理 <james.chen@....com.tw>,
'梁博翔' <paul.liang@....com.tw>,
"'jeff'" <jeff.chuang@....com.tw>
Subject: [PATCH] Input: elants_i2c - return real value of elants_i2c_initialize()
The return value of elants_i2c_initialize() was always 0.
It maybe register input device when initialize fail.
Signed-off-by: Johnny Chuang <johnny.chuang@....com.tw>
---
drivers/input/touchscreen/elants_i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/elants_i2c.c
b/drivers/input/touchscreen/elants_i2c.c
index d4ad24e..9c9816f 100644
--- a/drivers/input/touchscreen/elants_i2c.c
+++ b/drivers/input/touchscreen/elants_i2c.c
@@ -571,7 +571,7 @@ static int elants_i2c_initialize(struct elants_data *ts)
if (error)
ts->iap_mode = ELAN_IAP_RECOVERY;
- return 0;
+ return error;
}
/*
--
2.7.4
Powered by blists - more mailing lists