Read gpio value after gpio direction changed.

When gpio direction was changed from IN to OUT though sysfs. gpio
value would changed to zero. So after gpio direction changed, we
must read gpio value again.

Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
1 file changed