chipc_gpio_check_flags
static int chipc_gpio_check_flags(
if ((error = chipc_gpio_check_flags(sc, pin_num, flags, &mode)))