]> git.baikalelectronics.ru Git - kernel.git/commit
Input: zforce - fix error return code in zforce_start()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 17 Dec 2013 16:58:18 +0000 (08:58 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Dec 2013 16:47:39 +0000 (08:47 -0800)
commit6078baa4c866a7ee3609db5b80ed753dd1408e67
treeb719ce87281e6e002b137f018701e63e93a9cf00
parent47bbbda371b365353cce785bc041265d503574d2
Input: zforce - fix error return code in zforce_start()

The error code was not set if unable to set config, so the error
condition wasn't reflected in the return value. Fix to return a
negative error code from the error handling case instead of 0.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/zforce_ts.c