Input: zforce - fix error return code in zforce_start()
authorWei Yongjun <[email protected]>
Tue, 17 Dec 2013 16:58:18 +0000 (08:58 -0800)
committerDmitry Torokhov <[email protected]>
Wed, 18 Dec 2013 16:47:39 +0000 (08:47 -0800)
commit3c4396b434613f653bf95f741a6000e671d1e011
treeb719ce87281e6e002b137f018701e63e93a9cf00
parentc15bdfd5b9831e4cab8cfc118243956e267dd30e
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 <[email protected]>
Acked-by: Heiko Stuebner <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
drivers/input/touchscreen/zforce_ts.c