gpio: simplify the get_level function
gpio: simplify the get_level function

There's no need in doing a strncmp, additionally we only need to read 2
bytes to find the level.

Signed-off-by: Andy Doan <09032574f02f3d5e4e489a718b8705f28c474e94@linaro.org>

janick/libsoc,janick/libsoc,jackmitch/libsoc,yegorich/libsoc,hlummis/libsoc,jackmitch/libsoc,hlummis/libsoc,yegorich/libsoc,jackmitch/libsoc,yegorich/libsoc,janick/libsoc,hlummis/libsoc,janick/libsoc,hlummis/libsoc