Commit ad17731d authored by Linus Walleij's avatar Linus Walleij
Browse files

gpio: clamp values on gpio[d]_direction_output()



I saw weird values != [0,1] being passed down to drivers
in their .set_direction_output() callbacks. Go over the
gpiolib and make sure to hammer it to [0,1] before hitting
the driver to avoid undesired side effects.

Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 24b35ed9
Supports Markdown
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