[PATCH AUTOSEL for 4.14 002/135] HID: cp2112: fix broken gpio_direction_input callback

2017-12-07 Thread alexander . levin
From: Sébastien Szymanski [ Upstream commit 7da85fbf1c87d4f73621e0e7666a3387497075a9 ] When everything goes smoothly, ret is set to 0 which makes the function to return EIO error. Fixes: 8e9faa15469e ("HID: cp2112: fix gpio-callback error handling")

[PATCH AUTOSEL for 4.14 002/135] HID: cp2112: fix broken gpio_direction_input callback

2017-12-07 Thread alexander . levin
From: Sébastien Szymanski [ Upstream commit 7da85fbf1c87d4f73621e0e7666a3387497075a9 ] When everything goes smoothly, ret is set to 0 which makes the function to return EIO error. Fixes: 8e9faa15469e ("HID: cp2112: fix gpio-callback error handling") Signed-off-by: Sébastien Szymanski