commit | 609aaf6a60299256d2a6f2be499327a409dada17 | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <brgl@bgdev.pl> | Mon Oct 16 11:32:30 2017 +0200 |
committer | Linus Walleij <linus.walleij@linaro.org> | Thu Oct 19 22:32:39 2017 +0200 |
tree | b38145be5ed4aded0a31de14de36e1bc0e8802e1 | |
parent | 418ee8e91fe7fc90ffb6bce391304e084f77bce4 [diff] |
gpiolib: don't allow OPEN_DRAIN & OPEN_SOURCE flags for input OPEN_DRAIN and OPEN_SOURCE flags only affect the way we drive a GPIO line, so they only make sense for output mode. Just as we only allow input mode for event handle requests, don't allow passing open-drain and open-source flags for any other mode than explicit output. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>