commit | ad17731d7bd1c379f83d4bde844169588441266f | [log] [tgz] |
---|---|---|
author | Linus Walleij <linus.walleij@linaro.org> | Sun Nov 13 23:02:44 2016 +0100 |
committer | Linus Walleij <linus.walleij@linaro.org> | Tue Nov 15 10:29:41 2016 +0100 |
tree | 6e3316e335bca66714dbf3a092ddbaa5e7a8f756 | |
parent | 24b35ed9a84ab1e7ad96c67434841120ca7fbf36 [diff] |
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: Linus Walleij <linus.walleij@linaro.org>