gpio: enhance exception handling in interface function
- GPIO set type functions require prerequisites
1) [edge_mode] [direction]
none ----------------------> in, out (O)
rising, falling, both -----> in (O)
\
---> out (X)
2) [direction] [edge_mode]
in ------------------------> none, rising, falling, both (O)
out -----------------------> none (O)
\
----------------> rising, falling, both (X)
3) [direction] [value]
in ------------------------> read (O)
\
----------------> write (X)
out -----------------------> read, write (O)
Change-Id: I72f8557568916b01c1e2e9edef79ed79f5bb20e6
Signed-off-by: Segwon <segwon.han@samsung.com>