HID: cp2112: fix broken gpio_direction_input callback
authorSébastien Szymanski <sebastien.szymanski@armadeus.com>
Fri, 10 Nov 2017 09:01:43 +0000 (10:01 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 10 Nov 2017 12:32:35 +0000 (13:32 +0100)
commit7da85fbf1c87d4f73621e0e7666a3387497075a9
treedf39ad1003583c8f70252f639b9f45db39f913ce
parentce4dd820d7bc4352e042bd3c7100d509b34ab6ba
HID: cp2112: fix broken gpio_direction_input callback

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 <sebastien.szymanski@armadeus.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-cp2112.c