Re: [PATCH v2 3/3] HID: cp2112: fix broken gpio_direction_input callback

From: Jiri Kosina
Date: Fri Nov 10 2017 - 07:33:47 EST


On Fri, 10 Nov 2017, SÃbastien Szymanski wrote:

> 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@xxxxxxxxxxxx>
> ---
> Changes in v2:
> - rework error handling to have only one exit path as suggested by
> Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>

Applied to for-4.15/upstream.

--
Jiri Kosina
SUSE Labs