Use available info from register rather than shift and mask in gpio_read()