Skip to content
Commit 6933ba52 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

gpio: improve the API contract for setting direction



If a GPIO driver returns a positive integer from one of the direction
setter callbacks, we'll end up propagating it to user-space. Whether we
should sanitize the values returned by callbacks is a different question
but let's first improve the documentation and fortify the contract with
GPIO providers.

Reported-by: default avatarJosé Guilherme de Castro Rodrigues <joseguilhermebh@hotmail.com>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: default avatarKent Gibson <warthog618@gmail.com>
parent 88b70496
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment