diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2016-11-07 08:53:19 -0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-11-08 09:45:20 +0100 |
commit | ab5bd035445932397bfe351403ce52246096a261 (patch) | |
tree | cbc9a72de7400ebd8b945cf207025d3ba7b3f364 /drivers/leds/leds-gpio.c | |
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>
Diffstat (limited to 'drivers/leds/leds-gpio.c')
0 files changed, 0 insertions, 0 deletions