mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
gpio: tb10x: Set output value before setting direction to output
Signed-off-by: Axel Lin <[email protected]> Acked-by: Christian Ruppert <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
6ce4eac1f6
commit
2e86230fcb
1 changed files with 1 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ static int tb10x_gpio_direction_out(struct gpio_chip *chip,
|
|||
int mask = BIT(offset);
|
||||
int val = TB10X_GPIO_DIR_OUT << offset;
|
||||
|
||||
tb10x_gpio_set(chip, offset, value);
|
||||
tb10x_set_bits(tb10x_gpio, OFFSET_TO_REG_DDR, mask, val);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue