[PATCH -next] Input: pmic8xxx-pwrkey - fix to pass correct device identity to free_irq()

2013-12-16 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn free_irq() in the error handling case is missing when change pass input device directly to interrupt. Fixes: b27f8fee4965('Input: pmic8xxx-pwrkey - pass input device directly to interrupt') Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn

[PATCH -next] Input: zforce - fix error return code in zforce_start()

2013-12-16 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn 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_...@trendmicro.com.cn

[PATCH] Input: mpu3050 - add missing i2c_set_clientdata() in mpu3050_probe()

2013-11-10 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Add missing i2c_set_clientdata() in mpu3050_probe(), otherwise calling i2c_get_clientdata() in mpu3050_remove() returns NULL. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/input/misc/mpu3050.c | 1 + 1 file changed, 1

[PATCH] Input: mma8450 - add missing i2c_set_clientdata() in mma8450_probe()

2013-11-10 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Add missing i2c_set_clientdata() in mma8450_probe(), otherwise calling i2c_get_clientdata() in mma8450_remove() returns NULL. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/input/misc/mma8450.c | 2 ++ 1 file changed, 2

[PATCH v2] Input: cyttsp4 - remove useless NULL test from cyttsp4_watchdog_timer()

2013-08-26 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove useless NULL test from cyttsp4_watchdog_timer(). Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- v1 - v2: remove NULL test instead. (was: Input: cyttsp4 - fix potential NULL pointer dereference in cyttsp4_watchdog_timer

[PATCH] Input: cyttsp4 - fix potential NULL pointer dereference in cyttsp4_watchdog_timer()

2013-08-25 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn The dereference should be moved below the NULL test. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/input/touchscreen/cyttsp4_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input

[PATCH] Input: wacom - fix error return code in wacom_probe()

2013-08-22 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code from the urb submit error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/input/tablet/wacom_sys.c | 3 ++- 1 file changed, 2

[PATCH -next] HID: use module_hid_driver() to simplify the code

2013-08-22 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn module_hid_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/hid/hid-xinmo.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH -next] Input: olpc_apsp - remove redundant dev_err call in olpc_apsp_probe()

2013-07-16 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/input/serio/olpc_apsp.c | 4 +--- 1 file changed, 1

[PATCH -next] HID: holtek-mouse: use module_hid_driver() to simplify the code

2013-05-29 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn module_hid_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/hid/hid-holtek-mouse.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH -next] HID: steelseries: use module_hid_driver() to simplify the code

2013-03-15 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn module_hid_driver() makes the code simpler by eliminating boilerplate code.. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/hid/hid-steelseries.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH] staging: ste_rmi4: use module_i2c_driver to simplify the code

2012-10-08 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Use the module_i2c_driver() macro to make the code smaller and a bit simpler. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/staging