Fix logic in gpio_write and gpio_get_direction 10/127210/2
authorHyeongsik Min <hyeongsik.min@samsung.com>
Wed, 26 Apr 2017 11:31:03 +0000 (20:31 +0900)
committerHyeongsik Min <hyeongsik.min@samsung.com>
Thu, 27 Apr 2017 06:50:48 +0000 (15:50 +0900)
commit3f9d0b308e111023a754337b9ed6434e92819571
tree2c628e9e249a788ae347d47624d1ce4fd1a1a228
parentc9ff1b6aad92a5853d37b65e77d704ed4eb99c96
Fix logic in gpio_write and gpio_get_direction

- Return error if direction is input mode
- Update direction state along with input value

Change-Id: I360df5a6c986defaf25a71cf3a47785854b3c9a3
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
src/daemon/peripheral_bus_gpio.c