commit | ab5bd035445932397bfe351403ce52246096a261 | [log] [tgz] |
---|---|---|
author | Andrey Smirnov <andrew.smirnov@gmail.com> | Mon Nov 07 08:53:19 2016 -0800 |
committer | Linus Walleij <linus.walleij@linaro.org> | Tue Nov 08 09:45:20 2016 +0100 |
tree | cbc9a72de7400ebd8b945cf207025d3ba7b3f364 | |
parent | d977a876c655f176d9faf87fe55148ca2676d3fb [diff] |
pinctrl-sx150x: Improve oscio GPIO functions Move actual code that configures oscio pin into a separate function and use it instead of calling sx150x_gpio_set to avoid calling sx150x_pin_is_oscio twice and correctly propagte error code in sx150x_gpio_direction_output. Tested-by: Neil Armstrong <narmstrong@baylibre.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>