gpio: exar: Set proper output level in exar_direction_output
authorAxel Lin <axel.lin@ingics.com>
Sun, 26 Feb 2017 14:36:58 +0000 (22:36 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 15 Mar 2017 10:16:31 +0000 (11:16 +0100)
commiteddeae073760aa3186e2fa0d14a12794687fa786
tree61767ef408c6ec4e3850a354d818a33924471892
parent22c403676dbbb7c6f186099527af7f065498ef45
gpio: exar: Set proper output level in exar_direction_output

Current code does not set output level in exar_direction_output, fix it.
Also move the direction_output/direction_input code block to avoid forward
declaration for exar_set_value().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-exar.c