Skip to content
Commit 2ab3a749 authored by Jean Delvare's avatar Jean Delvare Committed by Linus Walleij
Browse files

gpio-ich: Fix value returned by ichx_gpio_request



Per Documentation/gpio.txt, gpio_request callbacks should return 0 on
success or a negative value on error. So it is not clear what was
meant by letting ichx_gpio_request return 1 in some cases, nor how a
caller would interpret it.

Align the code with the comment above it and consider pins as
available by default.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Acked-by: default avatarPeter Tyser <ptyser@xes-inc.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a937536b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment